summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-05-21 11:30:21 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-05-21 11:30:21 -0400
commit71f97dc1d8745767df169267fe54515f296ac945 (patch)
tree412a40ee7f15efdfe333d18ee79eb53b940f23c9 /src/lib/Server/Plugins
parente88008fef62328953b60b7670a69f517eae2ea6f (diff)
downloadbcfg2-71f97dc1d8745767df169267fe54515f296ac945.tar.gz
bcfg2-71f97dc1d8745767df169267fe54515f296ac945.tar.bz2
bcfg2-71f97dc1d8745767df169267fe54515f296ac945.zip
handle package sources without packages for an applicable client arch more gracefully
Diffstat (limited to 'src/lib/Server/Plugins')
-rw-r--r--src/lib/Server/Plugins/Packages/Source.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/Server/Plugins/Packages/Source.py b/src/lib/Server/Plugins/Packages/Source.py
index 4362d19ed..88d47fb3e 100644
--- a/src/lib/Server/Plugins/Packages/Source.py
+++ b/src/lib/Server/Plugins/Packages/Source.py
@@ -177,6 +177,10 @@ class Source(Bcfg2.Server.Plugin.Debuggable):
if a in metadata.groups]
vdict = dict()
for agrp in agroups:
+ if agrp not in self.provides:
+ self.logger.warning("%s provides no packages for %s" %
+ (self, agrp))
+ continue
for key, value in list(self.provides[agrp].items()):
if key not in vdict:
vdict[key] = set(value)