From be05b024339d7273767060b3679a91c434ee5455 Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Sun, 11 Nov 2018 18:15:35 -0500 Subject: grs/TarIt.py: control the entire alt-name for the tarball Signed-off-by: Anthony G. Basile --- grs/TarIt.py | 10 +++++----- 1 file 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() -- cgit v1.2.3-65-gdbad