summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins/Packages/Source.py
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2013-05-10 12:28:58 -0500
committerSol Jerome <sol.jerome@gmail.com>2013-05-10 12:28:58 -0500
commite55b0dc3b96cdac318dcf07309d18e763ccb7229 (patch)
tree35e65ffc784b5579e22fa0c4e6a5e5d8576fdff8 /src/lib/Bcfg2/Server/Plugins/Packages/Source.py
parent4f745cc2731f7035f02566ba8bc1a0e9ae1b1a71 (diff)
downloadbcfg2-e55b0dc3b96cdac318dcf07309d18e763ccb7229.tar.gz
bcfg2-e55b0dc3b96cdac318dcf07309d18e763ccb7229.tar.bz2
bcfg2-e55b0dc3b96cdac318dcf07309d18e763ccb7229.zip
APT: Allow specification of deb-src lines (Resolves #1148)
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins/Packages/Source.py')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Packages/Source.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Packages/Source.py b/src/lib/Bcfg2/Server/Plugins/Packages/Source.py
index 7ba374dd3..22073493c 100644
--- a/src/lib/Bcfg2/Server/Plugins/Packages/Source.py
+++ b/src/lib/Bcfg2/Server/Plugins/Packages/Source.py
@@ -158,6 +158,10 @@ class Source(Bcfg2.Server.Plugin.Debuggable): # pylint: disable=R0902
#: this source
self.whitelist = [item.text for item in xsource.findall('Whitelist')]
+ #: Whether or not to include deb-src lines in the generated APT
+ #: configuration
+ self.debsrc = xsource.get('debsrc', 'false') == 'true'
+
#: A dict of repository options that will be included in the
#: configuration generated on the server side (if such is
#: applicable; most backends do not generate any sort of