diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-09-24 00:09:48 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-09-24 00:09:48 -0300 |
commit | e21b2e2ecc559e525d43650239631b838bb79d51 (patch) | |
tree | a479435c1250d8aa739394f67cb3cf51bdfc9d5a /cron-jobs | |
parent | f291f3c6183f9ddfa189bc231fefac358523f929 (diff) |
remove deprecated repositories variables
Diffstat (limited to 'cron-jobs')
-rwxr-xr-x | cron-jobs/ftpdir-cleanup | 4 | ||||
-rwxr-xr-x | cron-jobs/repo-sanity-check | 2 | ||||
-rwxr-xr-x | cron-jobs/sourceballs | 8 |
3 files changed, 7 insertions, 7 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 diff --git a/cron-jobs/repo-sanity-check b/cron-jobs/repo-sanity-check index 1963812..aacac8a 100755 --- a/cron-jobs/repo-sanity-check +++ b/cron-jobs/repo-sanity-check @@ -8,7 +8,7 @@ source "$(dirname "$(readlink -e "$0")")/../etc/dbscripts.cfg" source "$(dirname "$(readlink -e "$0")")/../share/db-functions" # Traverse all repos -for _repo in "${repositories[@]}"; do +for _repo in "${main_repositories[@]}"; do msg "Cleaning up [%s]" "${_repo}" # Find all pkgnames on this repo's abs diff --git a/cron-jobs/sourceballs b/cron-jobs/sourceballs index d01b91b..9deaf71 100755 --- a/cron-jobs/sourceballs +++ b/cron-jobs/sourceballs @@ -7,7 +7,7 @@ pushd "${work_directory}" >/dev/null script_lock -for repo in "${repositories[@]}"; do +for repo in "${main_repositories[@]}"; do for arch in "${native_architectures[@]}"; do repo_lock "${repo}" "${arch}" || exit 1 done @@ -18,7 +18,7 @@ renice +10 -p $$ > /dev/null # Create a readable file for each repo with the following format # <pkgbase|pkgname> <pkgver>-<pkgrel> <arch> <license>[ <license>] -for repo in "${repositories[@]}"; do +for repo in "${main_repositories[@]}"; do for arch in "${native_architectures[@]}"; do # Repo does not exist; skip it if [ ! -f "${root_dir}/${repo}/os/${arch}/${repo}${database_extension_suffixfile}" ]; then @@ -39,7 +39,7 @@ for repo in "${repositories[@]}"; do done | sort -u > "${work_directory}/db-${repo}" done -for repo in "${repositories[@]}"; do +for repo in "${main_repositories[@]}"; do for arch in "${native_architectures[@]}"; do repo_unlock "${repo}" "${arch}" done @@ -49,7 +49,7 @@ done find "${root_dir}/${native_sources_pool}" -xtype f -name "*${source_extension_suffixfile}" -printf '%f\n' | sort -u > "${work_directory}/available-src-pkgs" # Check for all packages if we need to build a source package -for repo in "${repositories[@]}"; do +for repo in "${main_repositories[@]}"; do newpkgs=() failedpkgs=() while read line; do |