From fa4ff798507ded0b26dcdc310d1f97e2e61198c4 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 18:30:39 -0300 Subject: rename FTP_BASE -> root_dir --- db-sync | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'db-sync') diff --git a/db-sync b/db-sync index 5264296..f97718d 100755 --- a/db-sync +++ b/db-sync @@ -117,7 +117,7 @@ init() { --include-from="/tmp/${_repo}-${_arch}.whitelist" \ --exclude="*" \ "rsync://${mirror}/${mirrorpath}/${_repo}/os/${_arch}/" \ - "${FTP_BASE}/${_repo}/os/${_arch}/" + "${root_dir}/${_repo}/os/${_arch}/" # Add a new whitelist whitelists+=(/tmp/${_repo}-${_arch}.whitelist) @@ -127,7 +127,7 @@ init() { --delay-updates \ --safe-links \ "${WORKDIR}/${_repo}/os/${_arch}/" \ - "${FTP_BASE}/${_repo}/os/${_arch}/" + "${root_dir}/${_repo}/os/${_arch}/" # Cleanup unset db @@ -152,7 +152,7 @@ init() { --include-from=/tmp/any.whitelist \ --exclude="*" \ "rsync://${mirror}/${mirrorpath}/${pkgpool}/" \ - "${FTP_BASE}/${pkgpool}/" + "${root_dir}/${pkgpool}/" done # Sync sources @@ -171,10 +171,10 @@ init() { --include-from=/tmp/any.whitelist \ --exclude="*" \ "rsync://${mirror}/${mirrorpath}/${srcpool}/" \ - "${FTP_BASE}/${srcpool}/" + "${root_dir}/${srcpool}/" done - date -u +%s > "${FTP_BASE}/lastsync" + date -u +%s > "${root_dir}/lastsync" # Cleanup unset blacklist whitelists _arch _repo repo_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 FTP_BASE ARCHSRCPOOLS ARCHPKGPOOLS; do +for var in DBEXT FILESEXT 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