[Python-modules-commits] [python-peak.rules] 01/04: Use dpkg-parsechangelog -S Version instead of pipe to grep

Daniele Tricoli eriol-guest at moszumanska.debian.org
Sun Feb 7 20:04:33 UTC 2016


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

eriol-guest pushed a commit to branch master
in repository python-peak.rules.

commit aca9899cc77b3c904b5371f7d2262f2a4dadfa0e
Author: Daniele Tricoli <eriol at mornie.org>
Date:   Sun Feb 7 19:16:39 2016 +0100

    Use dpkg-parsechangelog -S Version instead of pipe to grep
---
 debian/rules | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 833cdda..5d2207b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,6 @@
 #!/usr/bin/make -f
 PKG = python-peak.rules
-VERSION = $(shell dpkg-parsechangelog | grep ^Version | cut -d" " -f2 | sed 's,-.*,,')
+VERSION = $(shell dpkg-parsechangelog -S Version | sed 's,-.*,,')
 GOS_TMP_DIR := $(shell mktemp -d $(PKG)-XXXXXXXXX)
 
 TAR_EXTRA_ARGS = --owner root --group root --mode a+rX

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-peak.rules.git



More information about the Python-modules-commits mailing list