summaryrefslogtreecommitdiff
path: root/cron-jobs/ftpdir-cleanup
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-09-23 20:23:50 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2015-09-23 20:23:50 -0300
commitdfcaa1e1423a59057eb84273b1982d69f31e9be8 (patch)
tree2657bf9a15aadd177c7f29c12536fce2c702b780 /cron-jobs/ftpdir-cleanup
parentb1fbfc099cb91a094128ffd86d16b2206a181f65 (diff)
fix variables
Diffstat (limited to 'cron-jobs/ftpdir-cleanup')
-rwxr-xr-xcron-jobs/ftpdir-cleanup12
1 files changed, 6 insertions, 6 deletions
diff --git a/cron-jobs/ftpdir-cleanup b/cron-jobs/ftpdir-cleanup
index fcf6879..43d5236 100755
--- a/cron-jobs/ftpdir-cleanup
+++ b/cron-jobs/ftpdir-cleanup
@@ -24,8 +24,8 @@ clean_pkg() {
"${cleanup_dryrun}" && warning 'dry run mode is active'
-for repo in "${PKGREPOS[@]}"; do
- for arch in "${ARCHES[@]}"; do
+for repo in "${repositories[@]}"; do
+ for arch in "${architectures[@]}"; do
if [ ! -f "${root_dir}/${repo}/os/${arch}/${repo}${database_extension_suffixfile}" ]; then
continue
fi
@@ -54,7 +54,7 @@ for repo in "${PKGREPOS[@]}"; do
done
# get a list of all available packages in the pacakge pool
-find "${root_dir}/${PKGPOOL}" -name "*${package_extension_suffixfile}" -printf '%f\n' | sort > "${work_directory}/pool"
+find "${root_dir}/${packages_pool}" -name "*${package_extension_suffixfile}" -printf '%f\n' | sort > "${work_directory}/pool"
# create a list of packages in our db
cat "${work_directory}/db-"* | sort -u > "${work_directory}/db"
@@ -63,7 +63,7 @@ if [ ${#old_pkgs[@]} -ge 1 ]; then
msg "Removing old packages from package pool..."
for old_pkg in "${old_pkgs[@]}"; do
msg2 '%s' "${old_pkg}"
- clean_pkg "${root_dir}/${PKGPOOL}/${old_pkg}"
+ clean_pkg "${root_dir}/${packages_pool}/${old_pkg}"
done
fi
@@ -79,8 +79,8 @@ if [ ${#old_pkgs[@]} -ge 1 ]; then
done
fi
-for repo in "${PKGREPOS[@]}"; do
- for arch in "${ARCHES[@]}"; do
+for repo in "${repositories[@]}"; do
+ for arch in "${architectures[@]}"; do
repo_unlock "${repo}" "${arch}"
done
done