diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-10-10 16:36:29 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-10-11 08:28:43 -0400 |
commit | 65c527340628bd24c5b478d15f22d811ddb0d437 (patch) | |
tree | 633504e88be53dbc6dba2c8d1b88804297b997f8 /src/lib/Bcfg2/Server/Plugins/Packages/Collection.py | |
parent | 7dd8927a2fbccef28aacda6112bf00aa4ad42720 (diff) | |
download | bcfg2-65c527340628bd24c5b478d15f22d811ddb0d437.tar.gz bcfg2-65c527340628bd24c5b478d15f22d811ddb0d437.tar.bz2 bcfg2-65c527340628bd24c5b478d15f22d811ddb0d437.zip |
Packages: updated pulp repo handling to latest Pulp v1 API
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins/Packages/Collection.py')
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/Packages/Collection.py | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Packages/Collection.py b/src/lib/Bcfg2/Server/Plugins/Packages/Collection.py index a0646d101..ec9ba550b 100644 --- a/src/lib/Bcfg2/Server/Plugins/Packages/Collection.py +++ b/src/lib/Bcfg2/Server/Plugins/Packages/Collection.py @@ -93,7 +93,8 @@ class Collection(list, Bcfg2.Server.Plugin.Debuggable): #: Whether or not this Packages backend supports package groups __package_groups__ = False - def __init__(self, metadata, sources, basepath, debug=False): + def __init__(self, metadata, sources, cachepath, basepath, fam, + debug=False): """ :param metadata: The client metadata for this collection :type metadata: Bcfg2.Server.Plugins.Metadata.ClientMetadata @@ -103,9 +104,16 @@ class Collection(list, Bcfg2.Server.Plugin.Debuggable): :type sources: list of :class:`Bcfg2.Server.Plugins.Packages.Source.Source` objects - :param basepath: The base filesystem path where cache and - other temporary data will be stored + :param cachepath: The filesystem path where cache and other temporary + data will be stored + :type cachepath: string + :param basepath: The filesystem path to the Packages plugin + directory, where more permanent data can be + stored :type basepath: string + :param fam: A file monitor object to use if this Collection + needs to monitor for file activity + :type fam: Bcfg2.Server.FileMonitor.FileMonitor :param debug: Enable debugging output :type debug: bool @@ -116,7 +124,9 @@ class Collection(list, Bcfg2.Server.Plugin.Debuggable): self.debug_flag = debug self.metadata = metadata self.basepath = basepath + self.cachepath = cachepath self.virt_pkgs = dict() + self.fam = fam try: self.setup = sources[0].setup |