From a421270df079eebb4365375e3a39693a21b3a221 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 1 Mar 2013 01:07:05 +0100 Subject: Packages/Apt: add pin attribute for extra pinning information --- src/lib/Bcfg2/Server/Plugins/Packages/Source.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/lib/Bcfg2/Server/Plugins/Packages') diff --git a/src/lib/Bcfg2/Server/Plugins/Packages/Source.py b/src/lib/Bcfg2/Server/Plugins/Packages/Source.py index 847e58ba6..12435c2c8 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, -- cgit v1.2.3-1-g7c22