[Apt-listbugs-commits] [apt-listbugs] 01/02: use appropriate options for dpkg-parsechangelog
Francesco Poli
frx-guest at moszumanska.debian.org
Sat May 17 15:46:06 UTC 2014
This is an automated email from the git hooks/post-receive script.
frx-guest pushed a commit to branch master
in repository apt-listbugs.
commit c1a3e70959a41ccc07039737fd97288ccb804088
Author: Francesco Poli (wintermute) <invernomuto at paranoici.org>
Date: Sat May 17 17:37:07 2014 +0200
use appropriate options for dpkg-parsechangelog
---
apt-listbugs | 2 +-
debian/changelog | 1 +
git-tag.sh | 4 ++--
3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/apt-listbugs b/apt-listbugs
index 635b15c..0d3087e 100755
--- a/apt-listbugs
+++ b/apt-listbugs
@@ -307,7 +307,7 @@ if File.expand_path(__FILE__).match(/^\/usr\/s?bin\//)
$VERSION = `dpkg-query -W -f='${Version}' apt-listbugs`
else
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "lib"))
- $VERSION = `dpkg-parsechangelog | grep ^Version: | cut -d ' ' -f 2`
+ $VERSION = `dpkg-parsechangelog -SVersion`
end
require 'getoptlong'
diff --git a/debian/changelog b/debian/changelog
index 2f543a4..1418e19 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ apt-listbugs (0.1.14) UNRELEASED; urgency=medium
* fixed "please don't break apt on failures": when ruby-debian binary
library fails to load, suggest a possible way to fix things up
and then exit with error (Closes: #747487)
+ * simplified use of dpkg-parsechangelog in various places
-- Francesco Poli (wintermute) <invernomuto at paranoici.org> Sun, 11 May 2014 16:45:18 +0200
diff --git a/git-tag.sh b/git-tag.sh
index 349321a..c1d1931 100755
--- a/git-tag.sh
+++ b/git-tag.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-SRCPACK=$(env LC_ALL=C dpkg-parsechangelog | sed -n 's/^Source: //p')
-VERSION=$(env LC_ALL=C dpkg-parsechangelog | sed -n 's/^Version: //p')
+SRCPACK=$(dpkg-parsechangelog -SSource)
+VERSION=$(dpkg-parsechangelog -SVersion)
git tag -s -u "$DEBEMAIL" -m "$SRCPACK release $VERSION" "$SRCPACK/$VERSION"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/apt-listbugs/apt-listbugs.git
More information about the Apt-listbugs-commits
mailing list