From 99493a15bde1b1c0d2d8f2ccc985da32570aacec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?coadde=20=5BM=C3=A1rcio=20Alexandre=20Silva=20Delgado=5D?= Date: Wed, 23 Sep 2015 19:29:53 -0300 Subject: rename generic variables --- db-sync | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'db-sync') diff --git a/db-sync b/db-sync index f97718d..06161a2 100755 --- a/db-sync +++ b/db-sync @@ -27,9 +27,9 @@ get_repos() { # Exclude everything but db files rsync "${extra[@]}" --no-motd -mrtlH --no-p --include="*/" \ --include="*.db" \ - --include="*${DBEXT}" \ + --include="*${database_extension_suffixfile}" \ --include="*.files" \ - --include="*${FILESEXT}" \ + --include="*${files_extension_suffixfile}" \ --exclude="*" \ --delete-after \ "rsync://${mirror}/${mirrorpath}/" "$WORKDIR" @@ -73,8 +73,8 @@ init() { for _arch in "${ARCHARCHES[@]}"; do msg "Processing %s-%s" "${_repo}-${_arch}" - db_file=$(get_repo_file "${_repo}" "${_arch}")${DBEXT} - files_file=$(get_repo_file "${_repo}" "${_arch}")${FILESEXT} + db_file=$(get_repo_file "${_repo}" "${_arch}")${database_extension_suffixfile} + files_file=$(get_repo_file "${_repo}" "${_arch}")${files_extension_suffixfile} if [ ! -f "${db_file}" ]; then warning "%s doesn't exist, skipping this repo-arch" "${db_file}" @@ -192,7 +192,7 @@ source "$(dirname "$(readlink -e "$0")")/config" source "$(dirname "$(readlink -e "$0")")/db-libremessages" # Check variables presence -for var in DBEXT FILESEXT mirror mirrorpath WORKDIR BLACKLIST_FILE root_dir ARCHSRCPOOLS ARCHPKGPOOLS; do +for var in database_extension_suffixfile files_extension_suffixfile mirror mirrorpath WORKDIR BLACKLIST_FILE root_dir ARCHSRCPOOLS ARCHPKGPOOLS; do test -z "${!var}" && fatal_error "Empty %s" "${var}" done -- cgit v1.2.3-2-g168b