[SCM] mjpegtools/master: Handle epoch properly when checking for new releases.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Mon Oct 7 16:02:27 UTC 2013


The following commit has been merged in the master branch:
commit edbcaaa22594c2ab06c97d5b405783d187efa54d
Author: Alessio Treglia <alessio at debian.org>
Date:   Mon Oct 7 17:02:08 2013 +0100

    Handle epoch properly when checking for new releases.

diff --git a/debian/rules b/debian/rules
index 79c06cc..585f74f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -21,7 +21,8 @@ override_dh_strip:
 	dh_strip --dbg-package=mjpegtools-dbg
 
 PACKAGE = mjpegtools
-VERSION = $(shell dpkg-parsechangelog | grep "^Version:" | sed -r "s/Version: (.*)\+debian.*/\1/")
+EPOCH = $(shell dpkg-parsechangelog | grep "^Version:" | sed -r "s/Version: (.*):.*/\1/")
+VERSION = $(shell dpkg-parsechangelog | grep "^Version:" | sed -r "s/Version: $(EPOCH):(.*)\+debian.*/\1/")
 TARBALL_VERSION = $(shell echo $(VERSION) | sed "s/~//")
 TARBALL_DIR = $(PACKAGE)-$(shell echo $(VERSION) | sed "s/~.*//")
 

-- 
mjpegtools packaging



More information about the pkg-multimedia-commits mailing list