[devscripts] 01/01: deb-reversion: Update md5sum of changelog if it's changed
James McCoy
jamessan at debian.org
Tue Sep 6 01:23:23 UTC 2016
This is an automated email from the git hooks/post-receive script.
jamessan pushed a commit to branch master
in repository devscripts.
commit dada6a3caa0041ee92aa2e4027e1a5d02f81a448
Author: James McCoy <jamessan at debian.org>
Date: Mon Sep 5 21:22:37 2016 -0400
deb-reversion: Update md5sum of changelog if it's changed
Closes: #836725
Signed-off-by: James McCoy <jamessan at debian.org>
---
debian/changelog | 4 ++++
scripts/deb-reversion.sh | 8 +++++---
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 9ca4ce7..a1590d1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,10 @@ devscripts (2.16.8) UNRELEASED; urgency=medium
* New script: debrepro, a simple reproducibility tester specific for Debian
packages. (Closes: #786755)
+ [ James McCoy ]
+ * deb-reversion: Update md5sum of changelog if it's changed. (Closes:
+ #836725)
+
-- Paul Wise <pabs at debian.org> Sat, 27 Aug 2016 13:58:14 +0800
devscripts (2.16.7) unstable; urgency=medium
diff --git a/scripts/deb-reversion.sh b/scripts/deb-reversion.sh
index 9c17b5a..61b477a 100755
--- a/scripts/deb-reversion.sh
+++ b/scripts/deb-reversion.sh
@@ -178,11 +178,13 @@ change_version()
done
[ -z "$LOGFILE" ] && { echo "changelog file not found"; return 1; }
mkdir -p debian
- zcat $LOGFILE > debian/changelog
+ zcat "$LOGFILE" > debian/changelog
shift
- dch $DCH_OPTIONS -v $VERSION -- $@
+ dch $DCH_OPTIONS -v "$VERSION" -- "$@"
call_hook
- gzip -9 -c debian/changelog >| $LOGFILE
+ gzip -9 -c debian/changelog >| "$LOGFILE"
+ MD5SUM=$(md5sum "$LOGFILE")
+ sed -i "s@^[^ ]* $LOGFILE\$@$MD5SUM@" DEBIAN/md5sums
else
call_hook
fi
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git
More information about the devscripts-devel
mailing list