From ba138b9d89fac753f7c95466eb82e8a50415d0b7 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 7 Aug 2013 23:47:07 -0600 Subject: librefetch: fix a bug with setting pkgname for split packages --- src/librefetch/librefetch | 10 ++++++---- 1 file 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 -- cgit v1.2.2