diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-06-02 23:17:05 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-06-02 23:17:05 -0400 |
commit | 5f183002d8149790b06bf3d5787ad4decee8b259 (patch) | |
tree | fa56de2242b229d137f8ada473251044a8f1e15b | |
parent | 0d6706721278efd42eefa3a4d54ee9773711e65e (diff) |
Handle split packages with different pkgver.
makepkg 5(?) dropped support for making these, but the code is there in
lukeshu/xbs, so go ahead and backport it.
-rwxr-xr-x | db-move | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -34,11 +34,6 @@ for pkgbase in "${args[@]:2}"; do die "Could not read pkgname" fi - pkgver=$(. "${xbsrepo_from}/PKGBUILD"; get_full_version) - if [ -z "${pkgver}" ]; then - die "Could not read pkgver" - fi - if [ "${pkgarch}" == 'any' ]; then tarches=("${ARCHES[@]}") else @@ -46,6 +41,10 @@ for pkgbase in "${args[@]:2}"; do fi for pkgname in "${pkgnames[@]}"; do + pkgver=$(. "${xbsrepo_from}/PKGBUILD"; get_full_version "${pkgname}") + if [ -z "${pkgver}" ]; then + die "Could not read pkgver" + fi for tarch in "${tarches[@]}"; do getpkgfile "${ftppath_from}/${tarch}/${pkgname}-${pkgver}-${pkgarch}"${PKGEXT} >/dev/null done @@ -74,9 +73,9 @@ for pkgbase in "${args[@]:2}"; do fi msg2 '%s (%s)' "${pkgbase}" "${tarches[*]}" pkgnames=($(. "${xbsrepo_to}/PKGBUILD"; echo "${pkgname[@]}")) - pkgver=$(. "${xbsrepo_to}/PKGBUILD"; get_full_version) for pkgname in "${pkgnames[@]}"; do + pkgver=$(. "${xbsrepo_to}/PKGBUILD"; get_full_version "${pkgname}") for tarch in "${tarches[@]}"; do pkgpath=$(getpkgfile "${ftppath_from}/${tarch}/${pkgname}-${pkgver}-${pkgarch}"${PKGEXT}) pkgfile="${pkgpath##*/}" |