This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to branch master
in repository pkg-perl-tools.

commit bd39563f5f966d90a049f89a33fd0f38f3df8824
Author: intrigeri <intrig...@boum.org>
Date:   Mon Aug 10 15:11:26 2015 +0000

    check-build: use dpkg-parsechangelog instead of manually parsing 
debian/changelog.
    
    This requires dpkg (>= 1.17), which sadly is not in Wheezy.
    If this is a problem for you, you know what you should do, right? :)
    (Hint: no, the correct answer is *not* "to revert this commit".)
---
 examples/check-build | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/check-build b/examples/check-build
index 1c20b8e..29b6f35 100755
--- a/examples/check-build
+++ b/examples/check-build
@@ -21,8 +21,8 @@ rm -rf $BUILDDIR/*obsolete*
 rm -f  $BUILDDIR/*_source.changes
 rm -f  $BUILDDIR/*.dsc.asc
 
-PACKAGE=$(head -1 debian/changelog | perl -pe 's|^([^\s]+) .*|$1|')
-VERSION=$(head -1 debian/changelog | perl -pe 's|^.+ \((?:\d:)?(.+)\) .*|$1|')
+PACKAGE=$(dpkg-parsechangelog -S Source)
+VERSION=$(dpkg-parsechangelog -S Version | perl -pe 's|^\d+:||')
 
 if [ -z "$ARCH" ] ; then
        CHANGES=$(ls -1rt $BUILDDIR/${PACKAGE}_${VERSION}_*.changes | tail -n 1)

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-perl/packages/pkg-perl-tools.git

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to