diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-09-23 20:23:50 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-09-23 20:23:50 -0300 |
commit | dfcaa1e1423a59057eb84273b1982d69f31e9be8 (patch) | |
tree | 2657bf9a15aadd177c7f29c12536fce2c702b780 /cron-jobs/sourceballs | |
parent | b1fbfc099cb91a094128ffd86d16b2206a181f65 (diff) |
fix variables
Diffstat (limited to 'cron-jobs/sourceballs')
-rwxr-xr-x | cron-jobs/sourceballs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/cron-jobs/sourceballs b/cron-jobs/sourceballs index efa9523..efa9f09 100755 --- a/cron-jobs/sourceballs +++ b/cron-jobs/sourceballs @@ -7,8 +7,8 @@ pushd "${work_directory}" >/dev/null script_lock -for repo in "${PKGREPOS[@]}"; do - for arch in "${ARCHES[@]}"; do +for repo in "${repositories[@]}"; do + for arch in "${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 "${PKGREPOS[@]}"; do - for arch in "${ARCHES[@]}"; do +for repo in "${repositories[@]}"; do + for arch in "${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 "${PKGREPOS[@]}"; do done | sort -u > "${work_directory}/db-${repo}" done -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 # Create a list of all available source package file names -find "${root_dir}/${SRCPOOL}" -xtype f -name "*${source_extension_suffixfile}" -printf '%f\n' | sort -u > "${work_directory}/available-src-pkgs" +find "${root_dir}/${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 "${PKGREPOS[@]}"; do +for repo in "${repositories[@]}"; do newpkgs=() failedpkgs=() while read line; do @@ -91,7 +91,7 @@ for repo in "${PKGREPOS[@]}"; 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}/${SRCPOOL}/${pkgbase}-${pkgver}${source_extension_suffixfile}" + mv_acl "${pkgbase}-${pkgver}${source_extension_suffixfile}" "${root_dir}/${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}/${SRCPOOL}/${old_pkg}" "${source_cleanup_destination_directory}/${old_pkg}" + mv_acl "${root_dir}/${sources_pool}/${old_pkg}" "${source_cleanup_destination_directory}/${old_pkg}" touch "${source_cleanup_destination_directory}/${old_pkg}" fi done |