diff options
Diffstat (limited to 'db-sync')
-rwxr-xr-x | db-sync | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |