]> git.deb.at Git - deb/packages.git/commitdiff
100syncarchive: Fix retrieval of Release{.gpg} from local mirror
authorFrank Lichtenheld <frank@lichtenheld.de>
Wed, 5 Sep 2007 01:18:19 +0000 (03:18 +0200)
committerFrank Lichtenheld <frank@lichtenheld.de>
Wed, 5 Sep 2007 01:18:19 +0000 (03:18 +0200)
When you copy & paste a wget commandline and change it to a rsync
commandline, don't forget to add an actual target.

cron.d/100syncarchive

index 1436bd971ff327e07f52edc50ee71ed607b27ab3..804865959ff054345af9abb5ce6e5cac1bb3f808 100755 (executable)
@@ -52,8 +52,8 @@ else
         echo "retrieve Releases(.gpg) $dist"
        test -d us/${dist} || mkdir -p us/${dist}
        (cd us/${dist} &&
-           rsync -t ${localdir}/dists/${dist}/Release &&
-           rsync -t ${localdir}/dists/${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`