From dfcaa1e1423a59057eb84273b1982d69f31e9be8 Mon Sep 17 00:00:00 2001 From: "coadde [Márcio Alexandre Silva Delgado]" Date: Wed, 23 Sep 2015 20:23:50 -0300 Subject: fix variables --- db-sync | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'db-sync') diff --git a/db-sync b/db-sync index df8675e..6902828 100755 --- a/db-sync +++ b/db-sync @@ -69,8 +69,8 @@ init() { get_repos # Traverse all repo-arch pairs - for _repo in "${ARCHREPOS[@]}"; do - for _arch in "${ARCHARCHES[@]}"; do + for _repo in "${derivative_repositories[@]}"; do + for _arch in "${derivative_architectures[@]}"; do msg "Processing %s-%s" "${_repo}-${_arch}" db_file=$(get_repo_file "${_repo}" "${_arch}")${database_extension_suffixfile} @@ -145,7 +145,7 @@ init() { # *Don't delete-after*, this is the job of cleanup scripts. It will remove our # packages too local pkgpool - for pkgpool in "${ARCHPKGPOOLS[@]}"; do + for pkgpool in "${ARCHpackages_poolS[@]}"; do rsync "${extra[@]}" --no-motd -rtlH \ --delay-updates \ --safe-links \ @@ -164,7 +164,7 @@ init() { # *Don't delete-after*, this is the job of cleanup scripts. It will remove our # packages too local srcpool - for srcpool in "${ARCHSRCPOOLS[@]}"; do + for srcpool in "${ARCHsources_poolS[@]}"; do rsync "${extra[@]}" --no-motd -rtlH \ --delay-updates \ --safe-links \ @@ -192,7 +192,7 @@ source "$(dirname "$(readlink -e "$0")")/etc/dbscripts.cfg" source "$(dirname "$(readlink -e "$0")")/share/db-libremessages" # Check variables presence -for var in database_extension_suffixfile files_extension_suffixfile mirror mirror_path work_directory blacklist_file root_dir ARCHSRCPOOLS ARCHPKGPOOLS; do +for var in database_extension_suffixfile files_extension_suffixfile mirror mirror_path work_directory blacklist_file root_dir ARCHsources_poolS ARCHpackages_poolS; do test -z "${!var}" && fatal_error "Empty %s" "${var}" done -- cgit v1.2.3-54-g00ecf