diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2009-08-09 12:16:29 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2009-08-09 12:16:29 +0000 |
commit | 098efa8d100afb3d4f45c43214d29d90138d4db1 (patch) | |
tree | 6f4267afd9f3a82785a88746677b7cc68009f4c4 /src/lib | |
parent | 92a7d555ff99e187d4583559f6abe82739221de9 (diff) | |
download | bcfg2-098efa8d100afb3d4f45c43214d29d90138d4db1.tar.gz bcfg2-098efa8d100afb3d4f45c43214d29d90138d4db1.tar.bz2 bcfg2-098efa8d100afb3d4f45c43214d29d90138d4db1.zip |
Packages: Fix make_non_redundant to work with packages with no deps
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5401 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/Server/Plugins/Packages.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Packages.py b/src/lib/Server/Plugins/Packages.py index 8d60b6e92..38364fbc8 100644 --- a/src/lib/Server/Plugins/Packages.py +++ b/src/lib/Server/Plugins/Packages.py @@ -494,7 +494,11 @@ class Packages(Bcfg2.Server.Plugin.Plugin, sources = self.get_matching_sources(meta) for source in sources: for pkgname in pkgnames: - for rpkg in source.get_deps(meta, pkgname): + try: + deps = source.get_deps(meta, pkgname) + except: + continue + for rpkg in deps: if rpkg in pkgnames: redundant.add(rpkg) return pkgnames.difference(redundant), redundant |