[med-svn] [qiime] 07/12: Really do not parse d/changelog

Andreas Tille tille at debian.org
Fri Nov 17 12:40:44 UTC 2017


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

tille pushed a commit to branch master
in repository qiime.

commit f7e4ccdc2e194012d146d8b7394f6327215e9e21
Author: Andreas Tille <tille at debian.org>
Date:   Fri Nov 17 13:18:33 2017 +0100

    Really do not parse d/changelog
---
 debian/rules | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/debian/rules b/debian/rules
index 1fbbc22..caf105a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -65,10 +65,7 @@ override_dh_install-arch:
 		dh_link -pqiime /usr/share/qiime/support_files/"$$path" /usr/lib/qiime/support_files/"$$path" ;\
 	done
 	#Embed the Debian revision into the version which users see.
-	( v=$$(dpkg-parsechangelog |  sed -n 's/^Version: \(.*\)/\1/p') ; \
-	  cd debian/qiime ; \
-	  f=usr/lib/qiime/bin/print_qiime_config.py ; \
-	  sed -i 's/^\(__version__ = "\)1.*"/\1'$$v'"/' $$f )
+	sed -i 's/^\(__version__ = "\)1.*"/\1'$(DEB_VERSION)'"/' debian/$(DEB_SOURCE)/usr/lib/qiime/bin/print_qiime_config.py
 
 override_dh_installchangelogs:
 	dh_installchangelogs ChangeLog.md

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/qiime.git



More information about the debian-med-commit mailing list