summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-09-22 22:17:03 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-09-22 22:17:03 +0000
commitc97ed92127b9d964d0514ae1c33af298f1d0f2e1 (patch)
tree8a2f4f556b12342538bf99517b299e3d42bd0b69
parent586dff26b60be8633dfb19601204329e152406e3 (diff)
downloadbcfg2-c97ed92127b9d964d0514ae1c33af298f1d0f2e1.tar.gz
bcfg2-c97ed92127b9d964d0514ae1c33af298f1d0f2e1.tar.bz2
bcfg2-c97ed92127b9d964d0514ae1c33af298f1d0f2e1.zip
Packages: sort auto-added package entries
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5447 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/lib/Server/Plugins/Packages.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Packages.py b/src/lib/Server/Plugins/Packages.py
index c1924350b..a4ce88ae2 100644
--- a/src/lib/Server/Plugins/Packages.py
+++ b/src/lib/Server/Plugins/Packages.py
@@ -499,7 +499,9 @@ class Packages(Bcfg2.Server.Plugin.Plugin,
if unknown:
self.logger.info("Got unknown entries")
self.logger.info(list(unknown))
- for pkg in packages.difference(initial):
+ newpkgs = list(packages.difference(initial))
+ newpkgs.sort()
+ for pkg in newpkgs:
lxml.etree.SubElement(news, 'BoundPackage', name=pkg,
type=ptype, version='auto', origin='Packages')
structures.append(news)