[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] sync-release: look up archive path in projectb



---
 scripts/debian/sync-release | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/debian/sync-release b/scripts/debian/sync-release
index c7b2803..eeb8ce8 100755
--- a/scripts/debian/sync-release
+++ b/scripts/debian/sync-release
@@ -38,6 +38,7 @@ if [ $# -ne 1 ]; then
 fi
 
 suite="${1}"
+archive_path=$(psql -qAtc "SELECT path FROM archive WHERE id = (SELECT archive_id FROM suite WHERE suite_name='${suite}')")
 target="sync-release:/srv/ftp-master.debian.org/tmp-release/"
 
 rsync -avH --progress -B8192 \
@@ -45,7 +46,7 @@ rsync -avH --progress -B8192 \
   --exclude "/dists/${suite}/main/installer-*" \
   --timeout 3600 \
   -e 'ssh -o ConnectTimeout=30 -o SetupTimeout=30' \
-  "${ftpdir}/./dists/${suite}/" "${ftpdir}/./zzz-dists/${suite}/" "${target}"
+  "${archive_path:?}/./dists/${suite}/" "${archive_path:?}/./zzz-dists/${suite}/" "${target}"
 
 # command for the remote side:
 # rsync --server -lHogDtprRe.iLsfx -B8192 --timeout=3600 . /srv/ftp-master.debian.org/tmp-release/
-- 
2.1.4


Reply to: