summaryrefslogtreecommitdiff
path: root/bin/common-functions
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-02-15 15:19:36 +0100
committerErich Eckner <git@eckner.net>2018-02-15 15:19:36 +0100
commit45ca53e3a30afb02d30cbcf1ef16fa40278731f0 (patch)
tree8681a9eb7ec98182757527d3416c045f17ecef42 /bin/common-functions
parent1c5d2f6a45acce10cc240508e6a99fd3ce66a29a (diff)
downloadbuilder-45ca53e3a30afb02d30cbcf1ef16fa40278731f0.tar.xz
bin/common-functions: $arch should not be extracted from $pkgname in remove_old_package_versions
Diffstat (limited to 'bin/common-functions')
-rwxr-xr-xbin/common-functions3
1 files changed, 0 insertions, 3 deletions
diff --git a/bin/common-functions b/bin/common-functions
index 4ac57c6..bcf8ed2 100755
--- a/bin/common-functions
+++ b/bin/common-functions
@@ -431,9 +431,6 @@ remove_old_package_versions() {
local pkgver
local pkgrel
local sub_pkgrel
- local arch
- pkgname="${package%.pkg.tar.xz}"
- arch="${pkgname##*-}"
pkgname="${pkgname%-*}"
pkgrel="${pkgname##*-}"
sub_pkgrel="${pkgrel##*.}"