diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2018-05-23 11:11:05 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz@archlinux.org> | 2018-06-27 00:20:01 -0400 |
commit | 9de966ba08e4d697404cc630ffa514ba18b1bace (patch) | |
tree | fc2b2bcd01a993c0de542849c09883354b8d2c40 | |
parent | 01712670c40df875c6ac6e1d5a88063fab0b020f (diff) |
hoist $tarch handling above $pkgname, since it is more efficient
-rwxr-xr-x | db-move | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -95,10 +95,10 @@ for pkgbase in "${args[@]:2}"; do arch_svn rm --force -q "${svnrepo_from}" tag_list+=", $pkgarch" - for pkgname in "${pkgnames[@]}"; do - for tarch in "${tarches[@]}"; do - declare -n add_pkgs="add_pkgs_${tarch}" - declare -n remove_pkgs="remove_pkgs_${tarch}" + for tarch in "${tarches[@]}"; do + declare -n add_pkgs="add_pkgs_${tarch}" + declare -n remove_pkgs="remove_pkgs_${tarch}" + for pkgname in "${pkgnames[@]}"; do pkgpath=$(getpkgfile "${ftppath_from}/${tarch}/${pkgname}-${pkgver}-${pkgarch}"${PKGEXTS}) pkgfile="${pkgpath##*/}" |