index : devtools32 | |
Archlinux32 fork of devtools | gitolite user |
summaryrefslogtreecommitdiff |
author | Levente Polyak <anthraxx@archlinux.org> | 2022-09-11 12:31:39 +0200 |
---|---|---|
committer | Levente Polyak <anthraxx@archlinux.org> | 2023-03-19 22:02:04 +0100 |
commit | b9d20c10a988775bc444ceaf872766fec32b54b5 (patch) | |
tree | bfbd8cc4c4f5381ea8d22049f98dbf2128c6c3c9 /lib/common.sh | |
parent | 184441895606f59dc85c695c627660758ca2b882 (diff) |
-rw-r--r-- | lib/common.sh | 10 |
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}")" |