[Xfce4-commits] [apps/catfish] 01/01: Add release file contents to release output for easier review
noreply at xfce.org
noreply at xfce.org
Thu Dec 26 12:47:43 CET 2019
This is an automated email from the git hooks/post-receive script.
b l u e s a b r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository apps/catfish.
commit 4c79f21a8ed4dbc405d453d5051084d4046c3c7a
Author: Sean Davis <smd.seandavis at gmail.com>
Date: Thu Dec 26 06:47:03 2019 -0500
Add release file contents to release output for easier review
---
setup.py | 24 +++++++++++++++++++++++-
1 file changed, 23 insertions(+), 1 deletion(-)
diff --git a/setup.py b/setup.py
index 7a4cfd0..dbd982a 100644
--- a/setup.py
+++ b/setup.py
@@ -232,6 +232,7 @@ DistUtilsExtra.auto.setup(
# Simplify Xfce release process by providing sums
if default_release_build:
import hashlib
+ import tarfile
bzfile = "dist/catfish-%s.tar.bz2" % release_version
if not os.path.exists(bzfile):
@@ -244,4 +245,25 @@ if default_release_build:
print("%s written" % bzfile)
print(" MD5: %s" % hashlib.md5(contents).hexdigest())
print(" SHA1: %s" % hashlib.sha1(contents).hexdigest())
- print(" SHA256: %s" % hashlib.sha256(contents).hexdigest())
\ No newline at end of file
+ print(" SHA256: %s" % hashlib.sha256(contents).hexdigest())
+ print("")
+ print("Contents:")
+
+ contents = {}
+ tar = tarfile.open(bzfile, "r:bz2")
+ for tarinfo in tar:
+ if not tarinfo.isdir():
+ basedir = os.path.dirname(tarinfo.name)
+ if basedir not in contents.keys():
+ contents[basedir] = []
+ contents[basedir].append(tarinfo.name)
+ tar.close()
+
+ for basedir in contents.keys():
+ indent = ""
+ for i in range(0, len(basedir.split("/"))):
+ indent += " "
+ print("%s%s/" % (indent, basedir))
+ indent += " "
+ for filename in contents[basedir]:
+ print(indent + filename)
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list