diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-09-19 13:36:55 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-09-20 11:37:55 -0400 |
commit | 8cba8ccce5be7094afd25037863f6819fa13ee7f (patch) | |
tree | 64ed598ad930a0e0cbd78b6a388ed787a76c46f2 /src/lib/Bcfg2/Server/Plugins/Packages/Apt.py | |
parent | 92bc95f86a834b2853c77bbbfa1c0021213e1e17 (diff) | |
download | bcfg2-8cba8ccce5be7094afd25037863f6819fa13ee7f.tar.gz bcfg2-8cba8ccce5be7094afd25037863f6819fa13ee7f.tar.bz2 bcfg2-8cba8ccce5be7094afd25037863f6819fa13ee7f.zip |
documented PackagesSources
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins/Packages/Apt.py')
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/Packages/Apt.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Packages/Apt.py b/src/lib/Bcfg2/Server/Plugins/Packages/Apt.py index 30be4b089..5e3d86f02 100644 --- a/src/lib/Bcfg2/Server/Plugins/Packages/Apt.py +++ b/src/lib/Bcfg2/Server/Plugins/Packages/Apt.py @@ -1,17 +1,18 @@ import re import gzip -from Bcfg2.Server.Plugins.Packages.Collection import _Collection +from Bcfg2.Server.Plugins.Packages.Collection import Collection from Bcfg2.Server.Plugins.Packages.Source import Source -class AptCollection(_Collection): +class AptCollection(Collection): def get_config(self): lines = ["# This config was generated automatically by the Bcfg2 " \ "Packages plugin", ''] for source in self: if source.rawurl: - self.logger.info("Packages: Skipping rawurl %s" % source.rawurl) + self.logger.info("Packages: Skipping rawurl %s" % + source.rawurl) else: lines.append("deb %s %s %s" % (source.url, source.version, " ".join(source.components))) |