diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2013-03-01 01:07:05 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-03-01 01:17:24 +0100 |
commit | 61bf996fd094b954b967829411121b9ef5922526 (patch) | |
tree | cbe37c7c5f66477d4be78dd0436367d897ab6aae /src/lib/Server | |
parent | 61db034d0087de42a7a39f01f4ac6067119f87ae (diff) | |
download | bcfg2-61bf996fd094b954b967829411121b9ef5922526.tar.gz bcfg2-61bf996fd094b954b967829411121b9ef5922526.tar.bz2 bcfg2-61bf996fd094b954b967829411121b9ef5922526.zip |
Packages/Apt: add pin attribute for extra pinning informationdebian/1.2.3-7
Diffstat (limited to 'src/lib/Server')
-rw-r--r-- | src/lib/Server/Plugins/Packages/Apt.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Packages/Apt.py b/src/lib/Server/Plugins/Packages/Apt.py index 21afe7456..96b746ad6 100644 --- a/src/lib/Server/Plugins/Packages/Apt.py +++ b/src/lib/Server/Plugins/Packages/Apt.py @@ -15,6 +15,7 @@ class AptSource(Source): def __init__(self, basepath, xsource, config): Source.__init__(self, basepath, xsource, config) + self.pin = xsource.get('pin', '') self.pkgnames = set() self.versions = dict() self.recommends = dict() @@ -23,7 +24,8 @@ class AptSource(Source): 'version': self.version, 'components': self.components, 'arches': self.arches, - 'priority': self.priority}] + 'priority': self.priority, + 'pin': self.pin}] def save_state(self): cache = file(self.cachefile, 'wb') |