summaryrefslogtreecommitdiff
path: root/cron-jobs/ftpdir-cleanup
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-09-24 00:09:48 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-09-24 00:09:48 -0300
commite21b2e2ecc559e525d43650239631b838bb79d51 (patch)
treea479435c1250d8aa739394f67cb3cf51bdfc9d5a /cron-jobs/ftpdir-cleanup
parentf291f3c6183f9ddfa189bc231fefac358523f929 (diff)
remove deprecated repositories variables
Diffstat (limited to 'cron-jobs/ftpdir-cleanup')
-rwxr-xr-xcron-jobs/ftpdir-cleanup4
1 files changed, 2 insertions, 2 deletions
diff --git a/cron-jobs/ftpdir-cleanup b/cron-jobs/ftpdir-cleanup
index 254b1c9..faa747a 100755
--- a/cron-jobs/ftpdir-cleanup
+++ b/cron-jobs/ftpdir-cleanup
@@ -24,7 +24,7 @@ clean_pkg() {
"${cleanup_dryrun}" && warning 'dry run mode is active'
-for repo in "${repositories[@]}"; do
+for repo in "${main_repositories[@]}"; do
for arch in "${native_architectures[@]}"; do
if [ ! -f "${root_dir}/${repo}/os/${arch}/${repo}${database_extension_suffixfile}" ]; then
continue
@@ -79,7 +79,7 @@ if [ ${#old_pkgs[@]} -ge 1 ]; then
done
fi
-for repo in "${repositories[@]}"; do
+for repo in "${main_repositories[@]}"; do
for arch in "${native_architectures[@]}"; do
repo_unlock "${repo}" "${arch}"
done