diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-09-23 19:29:53 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-09-23 19:29:53 -0300 |
commit | 99493a15bde1b1c0d2d8f2ccc985da32570aacec (patch) | |
tree | 781b603cf679870510acc33ac98ac7d32e3f9aa6 /db-sync | |
parent | 30525051311cab57d27dcd4fd42284dc142696e1 (diff) |
rename generic variables
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 |