summaryrefslogtreecommitdiff
path: root/db-move
diff options
context:
space:
mode:
Diffstat (limited to 'db-move')
-rwxr-xr-xdb-move14
1 files changed, 7 insertions, 7 deletions
diff --git a/db-move b/db-move
index 4c80d73..211e191 100755
--- a/db-move
+++ b/db-move
@@ -18,15 +18,15 @@ if ! check_repo_permission "$repo_to" || ! check_repo_permission "$repo_from"; t
die "You don't have permission to move packages from %s to %s" "${repo_from}" "${repo_to}"
fi
-# TODO: this might lock too much (architectures)
-for pkgarch in "${architectures[@]}"; do
+# TODO: this might lock too much (native_architectures)
+for pkgarch in "${native_architectures[@]}"; do
repo_lock "${repo_to}" "${pkgarch}" || exit 1
repo_lock "${repo_from}" "${pkgarch}" || exit 1
done
# First loop is to check that all necessary files exist
for pkgbase in "${args[@]:2}"; do
- for pkgarch in "${architectures[@]}" 'any'; do
+ for pkgarch in "${native_architectures[@]}" 'any'; do
xbsrepo_from="$(xbs releasepath "${pkgbase}" "${repo_from}" "${pkgarch}")"
if [ -r "${xbsrepo_from}/PKGBUILD" ]; then
pkgnames=($(. "${xbsrepo_from}/PKGBUILD"; echo "${pkgname[@]}"))
@@ -40,7 +40,7 @@ for pkgbase in "${args[@]:2}"; do
fi
if [ "${pkgarch}" == 'any' ]; then
- tarches=("${architectures[@]}")
+ tarches=("${native_architectures[@]}")
else
tarches=("${pkgarch}")
fi
@@ -68,7 +68,7 @@ for pkgbase in "${args[@]:2}"; do
xbsrepo_to="$(xbs releasepath "$pkgbase" "$repo_to" "$pkgarch")"
if true; then # to add an indent level to make merging easier
if [ "${pkgarch}" == 'any' ]; then
- tarches=("${architectures[@]}")
+ tarches=("${native_architectures[@]}")
else
tarches=("${pkgarch}")
fi
@@ -93,14 +93,14 @@ for pkgbase in "${args[@]:2}"; do
done
done
-for tarch in "${architectures[@]}"; do
+for tarch in "${native_architectures[@]}"; do
if [ -n "${add_pkgs[${tarch}]}" ]; then
arch_repo_add "${repo_to}" "${tarch}" ${add_pkgs[${tarch}]}
arch_repo_remove "${repo_from}" "${tarch}" ${remove_pkgs[${tarch}]}
fi
done
-for pkgarch in "${architectures[@]}"; do
+for pkgarch in "${native_architectures[@]}"; do
repo_unlock "${repo_from}" "${pkgarch}"
repo_unlock "${repo_to}" "${pkgarch}"
done