summaryrefslogtreecommitdiff
path: root/cron-jobs/sourceballs
diff options
context:
space:
mode:
Diffstat (limited to 'cron-jobs/sourceballs')
-rwxr-xr-xcron-jobs/sourceballs20
1 files changed, 10 insertions, 10 deletions
diff --git a/cron-jobs/sourceballs b/cron-jobs/sourceballs
index 54a493d..bd9b3c0 100755
--- a/cron-jobs/sourceballs
+++ b/cron-jobs/sourceballs
@@ -7,8 +7,8 @@ pushd "${work_directory}" >/dev/null
script_lock
-for repo in "${native_repositories[@]}"; do
- for arch in "${native_architectures[@]}"; do
+for repo in "${main_repositories[@]}"; do
+ for arch in "${main_architectures[@]}"; do
repo_lock "${repo}" "${arch}" || exit 1
done
done
@@ -18,8 +18,8 @@ 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 "${native_repositories[@]}"; do
- for arch in "${native_architectures[@]}"; do
+for repo in "${main_repositories[@]}"; do
+ for arch in "${main_architectures[@]}"; do
# Repo does not exist; skip it
if [ ! -f "${root_dir}/${repo}/os/${arch}/${repo}${database_extension_suffixfile}" ]; then
continue
@@ -39,17 +39,17 @@ for repo in "${native_repositories[@]}"; do
done | sort -u > "${work_directory}/db-${repo}"
done
-for repo in "${native_repositories[@]}"; do
- for arch in "${native_architectures[@]}"; do
+for repo in "${main_repositories[@]}"; do
+ for arch in "${main_architectures[@]}"; do
repo_unlock "${repo}" "${arch}"
done
done
# Create a list of all available source package file names
-find "${root_dir}/${main_sources_pool}" -xtype f -name "*${source_extension_suffixfile}" -printf '%f\n' | sort -u > "${work_directory}/available-src-pkgs"
+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 "${native_repositories[@]}"; do
+for repo in "${main_repositories[@]}"; do
newpkgs=()
failedpkgs=()
while read line; do
@@ -91,7 +91,7 @@ for repo in "${native_repositories[@]}"; do
pushd "${work_directory}/pkgbuilds/${repo}-${pkgarch}/${pkgbase}" >/dev/null
SRCPKGDEST=. makepkg --nocolor --allsource --ignorearch --skippgpcheck >"${work_directory}/${pkgbase}.log" 2>&1
if [ $? -eq 0 ] && [ -f "${pkgbase}-${pkgver}${source_extension_suffixfile}" ]; then
- mv_acl "${pkgbase}-${pkgver}${source_extension_suffixfile}" "${root_dir}/${main_sources_pool}/${pkgbase}-${pkgver}${source_extension_suffixfile}"
+ mv_acl "${pkgbase}-${pkgver}${source_extension_suffixfile}" "${root_dir}/${native_sources_pool}/${pkgbase}-${pkgver}${source_extension_suffixfile}"
# Avoid creating the same source package for every arch
echo "${pkgbase}-${pkgver}${source_extension_suffixfile}" >> "${work_directory}/available-src-pkgs"
newpkgs+=("${pkgbase}-${pkgver}${source_extension_suffixfile}")
@@ -128,7 +128,7 @@ if [ ${#old_pkgs[@]} -ge 1 ]; then
for old_pkg in "${old_pkgs[@]}"; do
msg2 '%s' "${old_pkg}"
if ! "${source_cleanup_dryrun}"; then
- mv_acl "${root_dir}/${main_sources_pool}/${old_pkg}" "${source_cleanup_destination_directory}/${old_pkg}"
+ mv_acl "${root_dir}/${native_sources_pool}/${old_pkg}" "${source_cleanup_destination_directory}/${old_pkg}"
touch "${source_cleanup_destination_directory}/${old_pkg}"
fi
done