[med-svn] [libpll] 01/05: No need to create same source twice
Andreas Tille
tille at debian.org
Fri May 5 13:05:12 UTC 2017
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository libpll.
commit 1afa0547b723b31c5d03e083831a2cfa0fc5ccf0
Author: Andreas Tille <tille at debian.org>
Date: Wed May 3 15:26:12 2017 +0200
No need to create same source twice
---
debian/get-orig-source | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/debian/get-orig-source b/debian/get-orig-source
index 3b911c6..9173fd2 100755
--- a/debian/get-orig-source
+++ b/debian/get-orig-source
@@ -3,6 +3,7 @@
COMPRESS=xz
NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
+DVERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed -e 's/^[0-9]*://' -e 's/-.*//'`
MVERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/^\([0-9\.]\+\)[+~][-0-9]\+$/\1/'`
mkdir -p ../tarballs
@@ -13,8 +14,16 @@ rm -rf *
git clone --quiet https://github.com/xflouris/libpll
cd $NAME
VERSION=${MVERSION}+`date -d @$(git show --format="%at" | head -n1) +%Y%m%d`
+
+if [ "$DVERSION" = "$VERSION" ] ; then
+ echo "No newer upstream version than $DVERSION available."
+ cd ..
+ rm -rf ${NAME}
+ exit
+fi
+
# for esthetical reasons set file timestamps (if git-restore-mtime is installed)
-git restore-mtime || true
+git restore-mtime 2>/dev/null || true
cd ..
TARDIR=${NAME}-${VERSION}
mv ${NAME} ${TARDIR}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/libpll.git
More information about the debian-med-commit
mailing list