From 9db1e3850ad8b459e029c3d04d34f545c6338d14 Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Wed, 23 Sep 2009 04:55:29 +0000 Subject: Packages: Fix case where item is completely unknown (hence pset is unset) (Resolves #743) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5450 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Server/Plugins/Packages.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/lib') diff --git a/src/lib/Server/Plugins/Packages.py b/src/lib/Server/Plugins/Packages.py index 68eddbb62..181258ea3 100644 --- a/src/lib/Server/Plugins/Packages.py +++ b/src/lib/Server/Plugins/Packages.py @@ -150,8 +150,7 @@ class Source(object): work.update(newdeps.difference(newpkg)) except NoData: continue - else: - # item_is_virt + elif item_is_virt: if item_is_pkg: pset.add(item) if debug: @@ -191,6 +190,8 @@ class Source(object): # dep unsatisfied # FIXME: hacky; multiple provides still not handled unknown.add(item) + else: + unknown.add(item) return (newpkg, unknown) class YUMSource(Source): -- cgit v1.2.3-1-g7c22