summaryrefslogtreecommitdiff
path: root/pkgkde-vcs
diff options
context:
space:
mode:
authorDmitry Shachnev <mitya57@gmail.com>2017-08-30 16:52:55 +0300
committerDmitry Shachnev <mitya57@gmail.com>2017-08-30 16:52:55 +0300
commit91f03c2aed13c838db5c5b304fe9e14c71513b96 (patch)
tree6a2fe692a4ee0147d36a9cb8e8e97a895a382269 /pkgkde-vcs
parentd13502d969d2c98d3d4ad08cc5fd740f1f337da8 (diff)
downloadpkg-kde-tools-91f03c2aed13c838db5c5b304fe9e14c71513b96.tar.gz
pkgkde-vcs: Make Git version mangling more close to DEP-14.
Do not strip epoch numbers, and replace tildes with underscores. Thanks to Sandro Knauß and Maximiliano Curia for the suggestions.
Diffstat (limited to 'pkgkde-vcs')
-rwxr-xr-xpkgkde-vcs4
1 files changed, 1 insertions, 3 deletions
diff --git a/pkgkde-vcs b/pkgkde-vcs
index 98f5368..96269b7 100755
--- a/pkgkde-vcs
+++ b/pkgkde-vcs
@@ -131,9 +131,7 @@ get_debian_package_info()
if [ -f "$rootdir/debian/changelog" ]; then
_pchangelog="$(dpkg-parsechangelog "-l$rootdir/debian/changelog")"
DEB_VERSION="$(echo "$_pchangelog" | _get_deb_field 'Version')"
- if [ -n "$DEB_VERSION" ]; then
- DEB_VERSION_WO_EPOCH=$(echo $DEB_VERSION | sed 's/^[[:digit:]]\+://')
- else
+ if [ -z "$DEB_VERSION" ]; then
die "unable to determine package version."
fi
DEB_SOURCE="$(echo "$_pchangelog" | _get_deb_field 'Source')"