diff options
author | Sol Jerome <solj@ices.utexas.edu> | 2009-09-15 04:21:48 +0000 |
---|---|---|
committer | Sol Jerome <solj@ices.utexas.edu> | 2009-09-15 04:21:48 +0000 |
commit | 874ad0df93b738675effd49c60accbb9cdaa384b (patch) | |
tree | 29cd25c7dd02443ab572d8372ea5f6003653f358 /src/lib/Client/Frame.py | |
parent | 3e9ab7ef6327966aaf6fe3f9560620c905382c6c (diff) | |
download | bcfg2-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/Client/Frame.py')
-rw-r--r-- | src/lib/Client/Frame.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/Client/Frame.py b/src/lib/Client/Frame.py index 735fb152c..8ab329e7b 100644 --- a/src/lib/Client/Frame.py +++ b/src/lib/Client/Frame.py @@ -118,6 +118,7 @@ class Frame: entry.get('name')) for entry in problems]) self.logger.error("") entries = [(entry.tag, entry.get('name')) for struct in config for entry in struct] + pkgs = [(entry.get('name'), entry.get('origin')) for struct in config for entry in struct if entry.tag == 'Package'] multi = [] for entry in entries[:]: if entries.count(entry) > 1: @@ -127,6 +128,11 @@ class Frame: self.logger.debug("The following entries are included multiple times:") self.logger.debug(["%s:%s" % entry for entry in multi]) self.logger.debug("") + if pkgs: + self.logger.debug("The following packages are specified in bcfg2:") + self.logger.debug([pkg[0] for pkg in pkgs if pkg[1] == None]) + self.logger.debug("The following packages are prereqs added by Packages:") + self.logger.debug([pkg[0] for pkg in pkgs if pkg[1] == 'Packages']) def __getattr__(self, name): |