summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins/Packages/Collection.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-03 14:28:34 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-03 14:28:34 -0400
commit7ab620571cbf135aa3bfb0e1e3c6112e9a0b2f35 (patch)
tree99e2dd2f1dcbc9636f2c66c6d3010096ed4786c8 /src/lib/Bcfg2/Server/Plugins/Packages/Collection.py
parent047006a2c404b1ebd5eb0b643a6530a99a88b5ea (diff)
downloadbcfg2-7ab620571cbf135aa3bfb0e1e3c6112e9a0b2f35.tar.gz
bcfg2-7ab620571cbf135aa3bfb0e1e3c6112e9a0b2f35.tar.bz2
bcfg2-7ab620571cbf135aa3bfb0e1e3c6112e9a0b2f35.zip
fixed calculation of new packages list
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins/Packages/Collection.py')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Packages/Collection.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Packages/Collection.py b/src/lib/Bcfg2/Server/Plugins/Packages/Collection.py
index d38a6e714..da88a1315 100644
--- a/src/lib/Bcfg2/Server/Plugins/Packages/Collection.py
+++ b/src/lib/Bcfg2/Server/Plugins/Packages/Collection.py
@@ -200,6 +200,13 @@ class Collection(Bcfg2.Server.Plugin.Debuggable):
default="auto"),
type=self.ptype, origin='Packages')
+ def get_new_packages(self, initial, complete):
+ """ compute the difference between the complete package list
+ and the initial package list. this is necessary because the
+ format may be different between the two lists due to
+ packages_{to,from}_entry() """
+ return list(packages.difference(initial))
+
def complete(self, packagelist):
'''Build the transitive closure of all package dependencies