]> git.deb.at Git - deb/packages.git/commitdiff
Adjust for -sloppy data fetching
authorGerfried Fuchs <rhonda@debian.org>
Mon, 11 Oct 2010 09:37:24 +0000 (11:37 +0200)
committerGerfried Fuchs <rhonda@debian.org>
Mon, 11 Oct 2010 09:37:24 +0000 (11:37 +0200)
cron.d/100syncarchive_backports

index 9acc155cb7bdf8afecaa26b226ca37681fad2462..72b56b994d84103e907ff4bbb1e5dbeee6455a27 100755 (executable)
@@ -7,35 +7,35 @@ cd ${archivedir}
 
 # backports archive
 #
-for dist in etch lenny squeeze
+for dist in lenny-backports lenny-backports-sloppy squeeze-backports
 do
-  echo "retrieve Release(.gpg) $dist-backports"
-  test -d backports/${dist}-backports || mkdir -p backports/${dist}-backports
-  (cd backports/${dist}-backports &&
-           $wget_cmd -N ${backports_ftpsite}/dists/${dist}-backports/Release &&
-           $wget_cmd -N ${backports_ftpsite}/dists/${dist}-backports/Release.gpg )
+  echo "retrieve Release(.gpg) $dist"
+  test -d backports/${dist} || mkdir -p backports/${dist}
+  (cd backports/${dist} &&
+           $wget_cmd -N ${backports_ftpsite}/dists/${dist}/Release &&
+           $wget_cmd -N ${backports_ftpsite}/dists/${dist}/Release.gpg )
 
     foo=\$arch_${dist//-/_}
     for arch in `eval echo $foo`
     do
       for part in ${parts}
       do
-       echo retrieve Packages $dist-backports/$part/$arch
-       test -d backports/${dist}-backports/${part}/binary-${arch} || mkdir -p backports/${dist}-backports/${part}/binary-${arch}
-       (cd backports/${dist}-backports/${part}/binary-${arch} &&
-           $wget_cmd -N ${backports_ftpsite}/dists/${dist}-backports/${part}/binary-${arch}/Packages.gz)
+       echo retrieve Packages $dist/$part/$arch
+       test -d backports/${dist}/${part}/binary-${arch} || mkdir -p backports/${dist}/${part}/binary-${arch}
+       (cd backports/${dist}/${part}/binary-${arch} &&
+           $wget_cmd -N ${backports_ftpsite}/dists/${dist}/${part}/binary-${arch}/Packages.gz)
       done
-      echo retrieve Contents $dist-backports/$arch
-      (cd backports/${dist}-backports &&
-         $wget_cmd -N ${backports_ftpsite}/dists/${dist}-backports/Contents-${arch}.gz)
+      echo retrieve Contents $dist/$arch
+      (cd backports/${dist} &&
+         $wget_cmd -N ${backports_ftpsite}/dists/${dist}/Contents-${arch}.gz)
     done
     for part in ${parts}
     do
-        echo retrieve Sources $dist-backports/$part
-        test -d backports/${dist}-backports/${part}/source || mkdir -p backports/${dist}-backports/${part}/source
-        (cd backports/${dist}-backports/${part}/source &&
-            $wget_cmd -N ${backports_ftpsite}/dists/${dist}-backports/${part}/source/Sources.gz)
+        echo retrieve Sources $dist/$part
+        test -d backports/${dist}/${part}/source || mkdir -p backports/${dist}/${part}/source
+        (cd backports/${dist}/${part}/source &&
+            $wget_cmd -N ${backports_ftpsite}/dists/${dist}/${part}/source/Sources.gz)
     done
 
-    $check_release_cmd $archivedir/backports/${dist}-backports/Release
+    $check_release_cmd $archivedir/backports/${dist}/Release
 done