[med-svn] [deepnano] 01/04: Somehow our upstream tarball had a wrong date. Try to verify the date in get-orig-source
Andreas Tille
tille at debian.org
Wed Feb 22 08:42:11 UTC 2017
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository deepnano.
commit ff1b7074bebf517e0eee3ddfd235da04261e97f9
Author: Andreas Tille <tille at debian.org>
Date: Wed Feb 22 09:32:14 2017 +0100
Somehow our upstream tarball had a wrong date. Try to verify the date in get-orig-source
---
debian/get-orig-source | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/debian/get-orig-source b/debian/get-orig-source
index 082e4d5..dfa6790 100755
--- a/debian/get-orig-source
+++ b/debian/get-orig-source
@@ -15,11 +15,19 @@ cd $NAME
VERSION=${MVERSION}+`date -d @$(git show --format="%at" | head -n1) +%Y%m%d`
# for esthetical reasons set file timestamps (if git-restore-mtime is installed)
git restore-mtime || true
+
+rm -rf .git*
+rm -f training/realign
+# find youngest file name:
+XVERSION=${MVERSION}+`find . -type f -printf '%T@ %p\n' | sort -n | tail -1 | sed 's/ .*//' | gawk '{print strftime("%Y%m%d", $0)}'`
+if [ "$VERSION" != "$XVERSION" ] ; then
+ echo "+++++ Upstream commited only new binary build, no code change ++++++"
+ VERSION=$XVERSION
+fi
+
cd ..
TARDIR=${NAME}-${VERSION}
mv ${NAME} ${TARDIR}
-rm -rf ${TARDIR}/.git*
-rm -f training/realign
GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -caf "$NAME"_"$VERSION".orig.tar.${COMPRESS} "${TARDIR}"
rm -rf ${TARDIR}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/deepnano.git
More information about the debian-med-commit
mailing list