From a63f3c46d17d8d300cebde9e73362ba23009450c Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Thu, 20 Sep 2012 11:00:54 -0400 Subject: documented packages backends --- src/lib/Bcfg2/Server/Plugins/Packages/Pac.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/lib/Bcfg2/Server/Plugins/Packages/Pac.py') diff --git a/src/lib/Bcfg2/Server/Plugins/Packages/Pac.py b/src/lib/Bcfg2/Server/Plugins/Packages/Pac.py index 13090cd9f..ac58f4c99 100644 --- a/src/lib/Bcfg2/Server/Plugins/Packages/Pac.py +++ b/src/lib/Bcfg2/Server/Plugins/Packages/Pac.py @@ -1,18 +1,33 @@ +""" Pacman backend for :mod:`Bcfg2.Server.Plugins.Packages` """ + import tarfile from Bcfg2.Server.Plugins.Packages.Collection import Collection from Bcfg2.Server.Plugins.Packages.Source import Source class PacCollection(Collection): + """ Handle collections of Pacman sources. This is a no-op object + that simply inherits from + :class:`Bcfg2.Server.Plugins.Packages.Collection.Collection`, + overrides nothing, and defers all operations to :class:`PacSource` + """ pass class PacSource(Source): + """ Handle Pacman sources """ + + #: :ref:`server-plugins-generators-packages-magic-groups` for + #: ``PacSource`` are "arch" and "parabola" basegroups = ['arch', 'parabola'] + + #: PacSource sets the ``type`` on Package entries to "pacman" ptype = 'pacman' @property def urls(self): + """ A list of URLs to the base metadata file for each + repository described by this source. """ if not self.rawurl: rv = [] for part in self.components: @@ -56,3 +71,4 @@ class PacSource(Source): tarinfo.name.rsplit("-", 2)[0]) tar.close() self.process_files(bdeps, bprov) + read_files.__doc__ = Source.read_files.__doc__ -- cgit v1.2.3-1-g7c22