From 648a333fa9bee495e2a16843f3b5c61957828f11 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Tue, 11 Sep 2007 16:54:56 +0200 Subject: [PATCH] 100syncarchive: Really fix retrieval of Release(.gpg) files 7f261c49b0b932c5cf04b107bac3bc8aad5f642c attempted to fix the retrieval of the Release(.gpg) files from a local mirror but really didn't because it didn't accounted for the chdir before the rsync call. Really fix it this time y removing the chdir. --- cron.d/100syncarchive | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cron.d/100syncarchive b/cron.d/100syncarchive index 8048659..5cb5af4 100755 --- a/cron.d/100syncarchive +++ b/cron.d/100syncarchive @@ -51,9 +51,8 @@ else do echo "retrieve Releases(.gpg) $dist" test -d us/${dist} || mkdir -p us/${dist} - (cd us/${dist} && - rsync -t ${localdir}/dists/${dist}/Release us/${dist}/Release && - rsync -t ${localdir}/dists/${dist}/Release.gpg us/${dist}/Release.gpg ) + rsync -t ${localdir}/dists/${dist}/Release us/${dist}/Release + rsync -t ${localdir}/dists/${dist}/Release.gpg us/${dist}/Release.gpg foo=\$arch_${dist//-/_} for arch in `eval echo $foo` -- 2.39.2