summaryrefslogtreecommitdiffstats
path: root/src/lib/Server
diff options
context:
space:
mode:
authorSol Jerome <solj@ices.utexas.edu>2009-09-15 04:21:48 +0000
committerSol Jerome <solj@ices.utexas.edu>2009-09-15 04:21:48 +0000
commit874ad0df93b738675effd49c60accbb9cdaa384b (patch)
tree29cd25c7dd02443ab572d8372ea5f6003653f358 /src/lib/Server
parent3e9ab7ef6327966aaf6fe3f9560620c905382c6c (diff)
downloadbcfg2-874ad0df93b738675effd49c60accbb9cdaa384b.tar.gz
bcfg2-874ad0df93b738675effd49c60accbb9cdaa384b.tar.bz2
bcfg2-874ad0df93b738675effd49c60accbb9cdaa384b.zip
Packages: Add list of packages and dependencies on client
Now that we have Packages, it is useful to be able to determine whether your package was specified directly in your configuration or was added by Packages. This commit allows you to view this information in debug mode on the client. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5434 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server')
-rw-r--r--src/lib/Server/Plugins/Packages.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Server/Plugins/Packages.py b/src/lib/Server/Plugins/Packages.py
index 916aeafc5..e3d741197 100644
--- a/src/lib/Server/Plugins/Packages.py
+++ b/src/lib/Server/Plugins/Packages.py
@@ -350,7 +350,7 @@ class APTSource(Source):
try:
reader = gzip.GzipFile(fname)
except:
- print "failed to read file %s" % fname
+ print("Failed to read file %s" % fname)
raise Exception()
continue
for line in reader.readlines():
@@ -497,7 +497,7 @@ class Packages(Bcfg2.Server.Plugin.Plugin,
self.logger.info(list(unknown))
for pkg in packages.difference(initial):
lxml.etree.SubElement(news, 'BoundPackage', name=pkg,
- type=ptype, version='auto')
+ type=ptype, version='auto', origin='Packages')
structures.append(news)
def make_non_redundant(self, meta, plname):