From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1E7C8138335 for ; Sun, 11 Nov 2018 23:16:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DBA03E0A6D; Sun, 11 Nov 2018 23:16:39 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AFB5DE0A6D for ; Sun, 11 Nov 2018 23:16:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 23000335C95 for ; Sun, 11 Nov 2018 23:16:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6E2333CF for ; Sun, 11 Nov 2018 23:16:33 +0000 (UTC) From: "Anthony G. Basile" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" Message-ID: <1541978180.be05b024339d7273767060b3679a91c434ee5455.blueness@gentoo> Subject: [gentoo-commits] proj/grss:master commit in: grs/ X-VCS-Repository: proj/grss X-VCS-Files: grs/TarIt.py X-VCS-Directories: grs/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: be05b024339d7273767060b3679a91c434ee5455 X-VCS-Branch: master Date: Sun, 11 Nov 2018 23:16:33 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 94a0ab39-3859-40ef-ad00-bc45f3bd6829 X-Archives-Hash: 0733470fb0206e1f976ef510cfe2b407 commit: be05b024339d7273767060b3679a91c434ee5455 Author: Anthony G. Basile gentoo org> AuthorDate: Sun Nov 11 23:15:35 2018 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Sun Nov 11 23:16:20 2018 +0000 URL: https://gitweb.gentoo.org/proj/grss.git/commit/?id=be05b024 grs/TarIt.py: control the entire alt-name for the tarball Signed-off-by: Anthony G. Basile gentoo.org> 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()