diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2009-09-23 04:55:29 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2009-09-23 04:55:29 +0000 |
commit | 9db1e3850ad8b459e029c3d04d34f545c6338d14 (patch) | |
tree | 2f40ac85155a99479646a5ef490e36a5a7aceeba | |
parent | 8f072533eba97f6135a6223285752741685ba66f (diff) | |
download | bcfg2-9db1e3850ad8b459e029c3d04d34f545c6338d14.tar.gz bcfg2-9db1e3850ad8b459e029c3d04d34f545c6338d14.tar.bz2 bcfg2-9db1e3850ad8b459e029c3d04d34f545c6338d14.zip |
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
-rw-r--r-- | src/lib/Server/Plugins/Packages.py | 5 |
1 files changed, 3 insertions, 2 deletions
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): |