summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2013-06-11 10:10:41 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2014-02-26 13:38:15 +0100
commitda1a7fa1c13d6c7a1d59f3239f1712e3a85a5ab4 (patch)
tree7421462f7587d9355e33aa617d581d9f3086fc6b /src/lib/Bcfg2/Server/Plugins/Packages/Yum.py
parente6e1f42847878c7abf0f4e454f84e510fe96f688 (diff)
downloadbcfg2-da1a7fa1c13d6c7a1d59f3239f1712e3a85a5ab4.tar.gz
bcfg2-da1a7fa1c13d6c7a1d59f3239f1712e3a85a5ab4.tar.bz2
bcfg2-da1a7fa1c13d6c7a1d59f3239f1712e3a85a5ab4.zip
Plugins/PkgVars: new plugin to set various vars per package
This plugins allows the setting of varius flags per package. It should be used f.e. to specify pinnings for debian packages or use flags and keywords for gentoo packages (needs to be implemented by future Portage plugin).
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins/Packages/Yum.py')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Packages/Yum.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py b/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py
index e09b55395..6100813f9 100644
--- a/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py
+++ b/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py
@@ -853,7 +853,7 @@ class YumCollection(Collection):
return new
@Bcfg2.Server.Plugin.track_statistics()
- def complete(self, packagelist, recommended=None):
+ def complete(self, packagelist, recommended=None, pinnings=None):
""" Build a complete list of all packages and their dependencies.
When using the Python yum libraries, this defers to the
@@ -871,7 +871,8 @@ class YumCollection(Collection):
resolved.
"""
if not self.use_yum:
- return Collection.complete(self, packagelist, recommended)
+ return Collection.complete(self, packagelist, recommended,
+ pinnings)
lock = FileLock(os.path.join(self.cachefile, "lock"))
slept = 0