aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2015-07-14 19:21:26 -0400
committerAnthony G. Basile <blueness@gentoo.org>2015-07-14 19:21:26 -0400
commitae46a8788abd80e1b367e63d2768b44a626799d5 (patch)
treed452b0a20a1873898ec946a2f188b276dcce498b
parentgrs/RunScript.py: add documentation. (diff)
downloadgrss-ae46a8788abd80e1b367e63d2768b44a626799d5.tar.gz
grss-ae46a8788abd80e1b367e63d2768b44a626799d5.tar.bz2
grss-ae46a8788abd80e1b367e63d2768b44a626799d5.zip
grs/Seed.py: add documentation.
-rw-r--r--grs/Seed.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/grs/Seed.py b/grs/Seed.py
index 1ce5f48..b5c9a6b 100644
--- a/grs/Seed.py
+++ b/grs/Seed.py
@@ -12,15 +12,10 @@ from grs.Rotator import Rotator
class Seed(Rotator):
- """ doc here
- more doc
- """
+ """ Download a stage tarball and unpack it into an empty system portage configroot. """
def __init__(self, stage_uri, tmpdir = CONST.TMPDIR, portage_configroot = \
CONST.PORTAGE_CONFIGROOT, package = CONST.PACKAGE, logfile = CONST.LOGFILE):
- """ doc here
- more doc
- """
self.stage_uri = stage_uri
self.portage_configroot = portage_configroot
self.package = package
@@ -30,9 +25,6 @@ class Seed(Rotator):
def seed(self):
- """ doc here
- more doc
- """
# Rotate the old portage_configroot and package out of the way
for directory in [self.portage_configroot, self.package]:
self.full_rotate(directory)
@@ -47,4 +39,3 @@ class Seed(Rotator):
# Because python's tarfile sucks
cmd = 'tar --xattrs -xf %s -C %s' % (self.filepath, self.portage_configroot)
Execute(cmd, timeout=120, logfile=self.logfile)
- #os.unlink(self.filepath)