summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins/Packages/Pac.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-09-20 11:00:54 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-09-20 11:37:55 -0400
commita63f3c46d17d8d300cebde9e73362ba23009450c (patch)
tree1fbb2d8f1d3d929e18a575fa76ee9898fbc3dec9 /src/lib/Bcfg2/Server/Plugins/Packages/Pac.py
parent8cba8ccce5be7094afd25037863f6819fa13ee7f (diff)
downloadbcfg2-a63f3c46d17d8d300cebde9e73362ba23009450c.tar.gz
bcfg2-a63f3c46d17d8d300cebde9e73362ba23009450c.tar.bz2
bcfg2-a63f3c46d17d8d300cebde9e73362ba23009450c.zip
documented packages backends
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins/Packages/Pac.py')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Packages/Pac.py16
1 files changed, 16 insertions, 0 deletions
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__