]> git.deb.at Git - deb/packages.git/commitdiff
Fix strange expansion to proper one
authorGerfried Fuchs <rhonda@debian.org>
Mon, 11 Oct 2010 11:31:36 +0000 (13:31 +0200)
committerGerfried Fuchs <rhonda@debian.org>
Mon, 11 Oct 2010 11:31:59 +0000 (13:31 +0200)
Thorsten Glaser noticed the wrong semantics in the expansion that is
triggered by the change. Actually the expansion was never used before
anyway.

cron.d/100syncarchive_backports

index 72b56b994d84103e907ff4bbb1e5dbeee6455a27..35ad9d7c6619a46edfea8f67c7faf8ee47a3a2d8 100755 (executable)
@@ -15,7 +15,7 @@ do
            $wget_cmd -N ${backports_ftpsite}/dists/${dist}/Release &&
            $wget_cmd -N ${backports_ftpsite}/dists/${dist}/Release.gpg )
 
-    foo=\$arch_${dist//-/_}
+    foo=\$arch_${dist%-*}
     for arch in `eval echo $foo`
     do
       for part in ${parts}