[pkg-remote-commits] [freerdp2] 11/12: debian/rules: Avoid using dpkg-parsechangelog.

Mike Gabriel sunweaver at debian.org
Sat Oct 21 22:31:42 UTC 2017


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

sunweaver pushed a commit to branch master
in repository freerdp2.

commit 775076ec87e503acee9b8ac7d51b0779b46e5dce
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Sun Oct 22 00:25:01 2017 +0200

    debian/rules: Avoid using dpkg-parsechangelog.
---
 debian/rules | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index f2a5e72..afb6b23 100755
--- a/debian/rules
+++ b/debian/rules
@@ -86,8 +86,8 @@ override_dh_strip:
 	dh_strip -plibuwac0-0 --dbgsym-migration='libuwac0-dbg (<< 2.0.0~git20161130.1.e60d0d5+dfsg1-1~exp1~)'
 
 PKD   = $(word 1,$(abspath $(dir $(MAKEFILE_LIST))))
-PKG   = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
-UVER  = $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};')
+PKG   = $(DEB_SOURCE)
+UVER  = $(shell echo $(DEB_VERSION) | cut -d "-" -f1)
 DTYPE = +dfsg1
 VER  ?= $(subst $(DTYPE),,$(UVER))
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-remote/freerdp2.git



More information about the pkg-remote-commits mailing list