summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-11-21 01:11:09 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-11-21 01:11:09 +0000
commit8a5550fb2dc1f7d901cb1c3fb3a7f68441ddd9d5 (patch)
treea035f1594a0d2db29792c4b2c21b252bd90382bf
parenta9c608cbc181011cdbb0467a8f1fe0a4097f4c92 (diff)
downloadbcfg2-8a5550fb2dc1f7d901cb1c3fb3a7f68441ddd9d5.tar.gz
bcfg2-8a5550fb2dc1f7d901cb1c3fb3a7f68441ddd9d5.tar.bz2
bcfg2-8a5550fb2dc1f7d901cb1c3fb3a7f68441ddd9d5.zip
Packages; use new debugging infrastructure
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5587 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/lib/Server/Plugins/Packages.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/Server/Plugins/Packages.py b/src/lib/Server/Plugins/Packages.py
index a60788b16..7dafaff3f 100644
--- a/src/lib/Server/Plugins/Packages.py
+++ b/src/lib/Server/Plugins/Packages.py
@@ -379,7 +379,6 @@ class APTSource(Source):
Source.__init__(self, basepath, url, version, arches, components, groups, rawurl)
self.cachefile = self.escape_url(self.url) + '.data'
self.pkgnames = set()
- print self.url
def save_state(self):
cache = file(self.cachefile, 'wb')
@@ -489,7 +488,7 @@ class Packages(Bcfg2.Server.Plugin.Plugin,
Bcfg2.Server.Plugin.Generator):
name = 'Packages'
experimental = True
- __rmi__ = ['Refresh']
+ __rmi__ = Bcfg2.Server.Plugin.Plugin.__rmi__ + ['Refresh']
def __init__(self, core, datastore):
Bcfg2.Server.Plugin.Plugin.__init__(self, core, datastore)
@@ -599,7 +598,8 @@ class Packages(Bcfg2.Server.Plugin.Plugin,
initial = set([pkg.get('name') for struct in structures \
for pkg in struct.findall('Package')])
news = lxml.etree.Element('Independent')
- packages, unknown, ptype = self.complete(meta, initial)
+ packages, unknown, ptype = self.complete(meta, initial,
+ debug=self.debug_flag)
logged_unknown = [x for x in unknown if not x.startswith('choice')]
if logged_unknown:
self.logger.info("Got unknown entries")