summaryrefslogtreecommitdiff
path: root/cron-jobs
diff options
context:
space:
mode:
Diffstat (limited to 'cron-jobs')
-rwxr-xr-xcron-jobs/ftpdir-cleanup4
-rwxr-xr-xcron-jobs/repo-sanity-check2
-rwxr-xr-xcron-jobs/sourceballs8
3 files changed, 7 insertions, 7 deletions
diff --git a/cron-jobs/ftpdir-cleanup b/cron-jobs/ftpdir-cleanup
index faa747a..e8321e3 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 "${main_repositories[@]}"; do
+for repo in "${native_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 "${main_repositories[@]}"; do
+for repo in "${native_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 aacac8a..bf1cac6 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 "${main_repositories[@]}"; do
+for _repo in "${native_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 9deaf71..7e056be 100755
--- a/cron-jobs/sourceballs
+++ b/cron-jobs/sourceballs
@@ -7,7 +7,7 @@ pushd "${work_directory}" >/dev/null
script_lock
-for repo in "${main_repositories[@]}"; do
+for repo in "${native_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 "${main_repositories[@]}"; do
+for repo in "${native_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 "${main_repositories[@]}"; do
done | sort -u > "${work_directory}/db-${repo}"
done
-for repo in "${main_repositories[@]}"; do
+for repo in "${native_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 "${main_repositories[@]}"; do
+for repo in "${native_repositories[@]}"; do
newpkgs=()
failedpkgs=()
while read line; do