Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/common.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/common.sh b/lib/common.sh
index d345307..577bb6e 100644
--- a/lib/common.sh
+++ b/lib/common.sh
@@ -255,6 +255,16 @@ getpkgdesc() {
}
+get_tag_from_pkgver() {
+ local pkgver=$1
+ local tag=${pkgver}
+
+ tag=${tag/:/-}
+ tag=${tag//~/.}
+ echo "${tag}"
+}
+
+
is_debug_package() {
local pkgfile=${1} pkgbase pkgname pkgdesc
pkgbase="$(getpkgbase "${pkgfile}")"