diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-08-07 23:47:07 -0600 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-08-07 23:47:07 -0600 |
commit | ba138b9d89fac753f7c95466eb82e8a50415d0b7 (patch) | |
tree | ca201d54c31ca7515c57c5d66e48dfe950586bae | |
parent | 14a150b73b66288dfdd67a275d88a0367c122210 (diff) |
librefetch: fix a bug with setting pkgname for split packages
-rwxr-xr-x | src/librefetch/librefetch | 10 |
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 |