summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2013-03-01 01:07:05 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2015-02-07 19:13:18 +0100
commitc49ac050e6e2a7939f17b5be48ca0e9ca8cc6994 (patch)
treec0606cbc0e2fd2b5e01e0287b7b5db182d99ca93 /src
parent696c1af2d35808d30d0691f7095418c9beb30424 (diff)
downloadbcfg2-c49ac050e6e2a7939f17b5be48ca0e9ca8cc6994.tar.gz
bcfg2-c49ac050e6e2a7939f17b5be48ca0e9ca8cc6994.tar.bz2
bcfg2-c49ac050e6e2a7939f17b5be48ca0e9ca8cc6994.zip
Packages/Apt: add pin attribute for extra pinning information
Diffstat (limited to 'src')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Packages/Source.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Packages/Source.py b/src/lib/Bcfg2/Server/Plugins/Packages/Source.py
index 1d053fc34..39e01c0bc 100644
--- a/src/lib/Bcfg2/Server/Plugins/Packages/Source.py
+++ b/src/lib/Bcfg2/Server/Plugins/Packages/Source.py
@@ -205,6 +205,9 @@ class Source(Debuggable): # pylint: disable=R0902
#: The "priority" attribute from :attr:`xsource`
self.priority = xsource.get('priority', 500)
+ #: The "pin" attribute from :attr:`xsource`
+ self.pin = xsource.get('pin', '')
+
#: A list of predicates that are used to determine if this
#: source applies to a given
#: :class:`Bcfg2.Server.Plugins.Metadata.ClientMetadata`
@@ -281,7 +284,7 @@ class Source(Debuggable): # pylint: disable=R0902
if self.url:
usettings = [dict(version=self.version, component=comp,
arch=arch, debsrc=self.debsrc,
- priority=self.priority)
+ priority=self.priority, pin=self.pin)
for comp in self.components]
else: # rawurl given
usettings = [dict(version=self.version, component=None,