diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-09-17 10:31:38 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-09-20 11:37:55 -0400 |
commit | 1587dcb17c310d5ffb22bd7060c1cf18696eba28 (patch) | |
tree | 76105afb0a1fc7657d884939cd65c5ca4d9dc962 /src/lib/Bcfg2/Server/Plugins/Packages/Apt.py | |
parent | af07f60e2e5c9c26ab1ef1d0ecc0565672a85f56 (diff) | |
download | bcfg2-1587dcb17c310d5ffb22bd7060c1cf18696eba28.tar.gz bcfg2-1587dcb17c310d5ffb22bd7060c1cf18696eba28.tar.bz2 bcfg2-1587dcb17c310d5ffb22bd7060c1cf18696eba28.zip |
development docs for Packages: Collection docs written
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins/Packages/Apt.py')
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/Packages/Apt.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Packages/Apt.py b/src/lib/Bcfg2/Server/Plugins/Packages/Apt.py index d6baf6d30..a85750651 100644 --- a/src/lib/Bcfg2/Server/Plugins/Packages/Apt.py +++ b/src/lib/Bcfg2/Server/Plugins/Packages/Apt.py @@ -1,21 +1,16 @@ 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 from Bcfg2.Compat import cPickle -class AptCollection(Collection): - def get_group(self, group): - self.logger.warning("Packages: Package groups are not " - "supported by APT") - return [] +class AptCollection(_Collection): def get_config(self): lines = ["# This config was generated automatically by the Bcfg2 " \ "Packages plugin", ''] - sources = dict() - for source in self.sources: + for source in self: if source.rawurl: self.logger.info("Packages: Skipping rawurl %s" % source.rawurl) else: |