Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/common-functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/common-functions b/bin/common-functions
index bcf8ed2..d0786a9 100755
--- a/bin/common-functions
+++ b/bin/common-functions
@@ -431,7 +431,7 @@ remove_old_package_versions() {
local pkgver
local pkgrel
local sub_pkgrel
- pkgname="${pkgname%-*}"
+ pkgname="${package%-*}"
pkgrel="${pkgname##*-}"
sub_pkgrel="${pkgrel##*.}"
if [ "${sub_pkgrel}" = "${pkgrel}" ]; then