summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Shachnev <mitya57@gmail.com>2017-08-30 17:24:51 +0300
committerDmitry Shachnev <mitya57@gmail.com>2017-08-30 17:24:51 +0300
commit22f254e48635bba87a6d8072368e48c1b3ed2e5e (patch)
tree493a0508850262a01b336d1bab44b4c60dc42887
parent91f03c2aed13c838db5c5b304fe9e14c71513b96 (diff)
downloadpkg-kde-tools-22f254e48635bba87a6d8072368e48c1b3ed2e5e.tar.gz
pkgkde-vcs: Follow DEP-14 even more closely by using Perl.
-rw-r--r--vcslib/git.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcslib/git.sh b/vcslib/git.sh
index 3359fab..af8374e 100644
--- a/vcslib/git.sh
+++ b/vcslib/git.sh
@@ -127,7 +127,7 @@ git_update_config()
git_compat_debver()
{
- echo "$1" | tr ":" "%" | tr "~" "_"
+ echo "$1" | perl -pe 'y/:~/%_/;s/\.(?=\.|$|lock$)/.#/g;'
}
git_is_working_tree_clean()