summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-08-07 23:47:07 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-08-07 23:47:07 -0600
commitba138b9d89fac753f7c95466eb82e8a50415d0b7 (patch)
treeca201d54c31ca7515c57c5d66e48dfe950586bae /src
parent14a150b73b66288dfdd67a275d88a0367c122210 (diff)
librefetch: fix a bug with setting pkgname for split packages
Diffstat (limited to 'src')
-rwxr-xr-xsrc/librefetch/librefetch10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/librefetch/librefetch b/src/librefetch/librefetch
index 3a5aef2..a5c12f2 100755
--- a/src/librefetch/librefetch
+++ b/src/librefetch/librefetch
@@ -276,10 +276,12 @@ modified_makepkg() {
# a string to be appended
pkgbuild_append='
# do not do split packages
-if [[ -n $pkgbase ]]; then
- pkgname=$pkgbase
-else
- pkgname=$pkgname
+if [[ ${#pkgname[@]} -gt 1 ]]; then
+ if [[ -n $pkgbase ]]; then
+ pkgname=("$pkgbase")
+ else
+ pkgname=("$pkgname")
+ fi
fi
# copy source variables