[SCM] Git repository for devscripts branch, master, updated. v2.12.4-141-gc75107e

Benjamin Drung bdrung at debian.org
Sat Feb 16 22:24:43 UTC 2013


The following commit has been merged in the master branch:
commit c75107eb1118b5688bf14c5f42eb28347127756c
Author: Benjamin Drung <bdrung at debian.org>
Date:   Sat Feb 16 23:22:45 2013 +0100

    nmudiff: Use dpkg-parsechangelog to fix manual parsing bug.
    
    Closes: #700584

diff --git a/debian/changelog b/debian/changelog
index f510700..b329048 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -56,6 +56,9 @@ devscripts (2.12.6+exp1) UNRELEASED; urgency=low
     period. (Closes: #696416)
   * French translation update.
 
+  [ Josselin Mouette ]
+  * nmudiff: Use dpkg-parsechangelog to fix manual parsing bug (Closes: #700584)
+
  -- James McCoy <jamessan at debian.org>  Sat, 15 Sep 2012 16:12:16 -0400
 
 devscripts (2.12.6) unstable; urgency=low
diff --git a/scripts/nmudiff.sh b/scripts/nmudiff.sh
index 0dd08c9..29c946a 100755
--- a/scripts/nmudiff.sh
+++ b/scripts/nmudiff.sh
@@ -275,8 +275,7 @@ if [ "$NMUDIFF_NEWREPORT" = "maybe" ]; then
     fi
 fi
 
-OLDVERSION=$( sed -n "s/^[^ .][^ ]* (\(.*\)).*$/\1/p" debian/changelog | \
-  head -2 | tail -1 )
+OLDVERSION=$(dpkg-parsechangelog -o1 -c1 | grep ^Version: | cut -d" " -f2)
 if [ -z "$OLDVERSION" ]; then
     echo "nmudiff: could not determine previous package version from changelog!" >&2
     exit 1

-- 
Git repository for devscripts



More information about the devscripts-devel mailing list