diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2018-11-11 18:15:35 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2018-11-11 18:16:20 -0500 |
commit | be05b024339d7273767060b3679a91c434ee5455 (patch) | |
tree | c9a9a67fe584e6cfd1932af6529eb879327c7777 | |
parent | grs/Constants.py: add CONFIGFILE for an alt to '/etc/grs/systems.conf' (diff) | |
download | grss-be05b024339d7273767060b3679a91c434ee5455.tar.gz grss-be05b024339d7273767060b3679a91c434ee5455.tar.bz2 grss-be05b024339d7273767060b3679a91c434ee5455.zip |
grs/TarIt.py: control the entire alt-name for the tarball
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
-rw-r--r-- | grs/TarIt.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/grs/TarIt.py b/grs/TarIt.py index aef1b42..89e7465 100644 --- a/grs/TarIt.py +++ b/grs/TarIt.py @@ -34,17 +34,17 @@ class TarIt(HashIt): self.portage_configroot = portage_configroot self.logfile = logfile # Prepare a year, month and day for a tarball name timestamp. - self.year = str(datetime.now().year).zfill(4) - self.month = str(datetime.now().month).zfill(2) - self.day = str(datetime.now().day).zfill(2) - self.medium_name = '%s-%s%s%s.tar.xz' % (name, self.year, self.month, self.day) + year = str(datetime.now().year).zfill(4) + month = str(datetime.now().month).zfill(2) + day = str(datetime.now().day).zfill(2) + self.medium_name = '%s-%s%s%s.tar.xz' % (name, year, month, day) self.digest_name = '%s.DIGESTS' % self.medium_name def tarit(self, alt_name=None): # Create the tarball with the default name unless an alt_name is given. if alt_name: - self.medium_name = '%s-%s%s%s.tar.xz' % (alt_name, self.year, self.month, self.day) + self.medium_name = '%s.tar.xz' % alt_name) self.digest_name = '%s.DIGESTS' % self.medium_name # We have to cd into the system's portage configroot and then out again. cwd = os.getcwd() |