[Python-modules-commits] r19113 - in packages/python-unipath/trunk/debian (rules)
arnau at users.alioth.debian.org
arnau at users.alioth.debian.org
Mon Oct 31 01:21:35 UTC 2011
Date: Monday, October 31, 2011 @ 01:21:33
Author: arnau
Revision: 19113
Make get-orig-source create tarballs with the same md5sum for the same version.
Modified:
packages/python-unipath/trunk/debian/rules
Modified: packages/python-unipath/trunk/debian/rules
===================================================================
--- packages/python-unipath/trunk/debian/rules 2011-10-30 22:59:15 UTC (rev 19112)
+++ packages/python-unipath/trunk/debian/rules 2011-10-31 01:21:33 UTC (rev 19113)
@@ -17,13 +17,18 @@
get-orig-source:
uscan --noconf --force-download --rename --download-current-version --destdir=.
- rm -rf python-unipath-$(DEB_UPSTREAM_VERSION)
- tar -xf python-unipath_$(DEB_UPSTREAM_VERSION).orig.tar.gz
- rm python-unipath_$(DEB_UPSTREAM_VERSION).orig.tar.gz
- rm -rf Unipath-$(DEB_UPSTREAM_VERSION)/doc
- rm -f Unipath-$(DEB_UPSTREAM_VERSION)/.hg*
- mv Unipath-$(DEB_UPSTREAM_VERSION) python-unipath-$(DEB_UPSTREAM_VERSION).orig
- GZIP=--best tar -cz --owner root --group root --mode a+rX \
- -f python-unipath_$(DEB_UPSTREAM_VERSION)+dfsg.orig.tar.gz \
- python-unipath-$(DEB_UPSTREAM_VERSION).orig
- rm -r python-unipath-$(DEB_UPSTREAM_VERSION).orig
+
+ gunzip python-unipath_$(DEB_UPSTREAM_VERSION).orig.tar.gz
+
+ # Create a tarball with the same md5sum by not extracting and
+ # deleting files with mv/rm as it should change atime and thus
+ #Â lead to a different md5sum for the resulting tarball
+ tar --delete --wildcards \
+ --file=python-unipath_$(DEB_UPSTREAM_VERSION).orig.tar \
+ Unipath-$(DEB_UPSTREAM_VERSION)/doc \
+ Unipath-$(DEB_UPSTREAM_VERSION)/.hg*
+
+ GZIP='-n --best' gzip python-unipath_$(DEB_UPSTREAM_VERSION).orig.tar
+
+ mv python-unipath_$(DEB_UPSTREAM_VERSION).orig.tar.gz \
+ python-unipath_$(DEB_UPSTREAM_VERSION)+dfsg.orig.tar.gz
More information about the Python-modules-commits
mailing list