An empty list doesn't equate to None. Who knew (:

Fixes broken dep logging
This commit is contained in:
Jesse Keating 2007-06-11 20:45:32 -04:00 committed by Jesse Keating
parent d507bed1b2
commit a5fdee3d55
2 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,7 @@
- Add a install target to make (Trac #37)
- Enable the source repo in yum configs (Trac #47)
- Use universal newlines in getting process output (Trac #44)
- Fix logging of broken deps (Trac #39)
* Fri May 25 2007 Jesse Keating <jkeating@redhat.com>
- Handle the cdsize variable correctly

View File

@ -111,8 +111,8 @@ class Gather(yum.YumBase):
continue
deps = self.whatProvides(r, f, v).returnPackages()
if deps is None:
self.logger.warning("Unresolvable dependency %s in %s.%s" % (r, po.name, po.arch))
if not deps:
self.logger.warn("Unresolvable dependency %s in %s.%s" % (r, po.name, po.arch))
continue
for dep in deps: