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>2013-11-22 11:41:21 +0100
commit7e1104007ac402fa85e584b80b02bebae8474c76 (patch)
treea3eedc9cb654fe799c8c38dad10f9d674558b354 /src/lib/Bcfg2/Server/Plugins/Packages/Yum.py
parentc1de77332dee33bf22f8305567fe6582a366788b (diff)
downloadbcfg2-7e1104007ac402fa85e584b80b02bebae8474c76.tar.gz
bcfg2-7e1104007ac402fa85e584b80b02bebae8474c76.tar.bz2
bcfg2-7e1104007ac402fa85e584b80b02bebae8474c76.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 78b795d5c..89e7c6251 100644
--- a/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py
+++ b/src/lib/Bcfg2/Server/Plugins/Packages/Yum.py
@@ -851,7 +851,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
@@ -869,7 +869,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