summaryrefslogtreecommitdiffstats
path: root/config/amnesia
diff options
context:
space:
mode:
authorChris Lamb <lamby@debian.org>2015-09-09 00:13:21 +0100
committerintrigeri <intrigeri@boum.org>2015-09-15 08:19:38 +0000
commitca78549610f53c277d5d566cd3996ee19b7a1b71 (patch)
tree9fd2ebb37125f9fcdd667792da108f14993121d8 /config/amnesia
parentf7d2768bd037ea1ed0b1b764adcb3d4dec91f934 (diff)
config/amnesia: use --show-field over sed filtering.
Signed-off-by: Chris Lamb <lamby@debian.org>
Diffstat (limited to 'config/amnesia')
-rw-r--r--config/amnesia2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/amnesia b/config/amnesia
index 437ccdf..fc0028d 100644
--- a/config/amnesia
+++ b/config/amnesia
@@ -32,7 +32,7 @@ fi
# Compute the current Amnesia's version once for all
AMNESIA_NOW="`date --utc '+%Y%m%dT%H%MZ'`"
AMNESIA_TODAY="`date '+%Y%m%d'`"
-AMNESIA_VERSION="`dpkg-parsechangelog | sed -n 's/^Version: //p'`"
+AMNESIA_VERSION="`dpkg-parsechangelog -SVersion`"
AMNESIA_FULL_VERSION="${AMNESIA_VERSION} - ${AMNESIA_TODAY}"
# Developpers' data used by git-dch, debcommit and friends in the release script