chiark / gitweb /
Test suite: lib-reprepro: cope with non-codenamed suites
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 7 Nov 2016 02:57:17 +0000 (02:57 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 7 Nov 2016 02:57:17 +0000 (02:57 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/lib-reprepro

index 8702044..d025d48 100644 (file)
@@ -42,9 +42,11 @@ t-reprepro-setup () {
                local suite=${suitespec%%:*}
                local sname=${suitespec#*:}
 
-               mkdir $tmp/mirror/dists
-               rm -f $tmp/mirror/dists/$sname
-               ln -s $suite $tmp/mirror/dists/$sname
+               mkdir -p $tmp/mirror/dists
+               if [ $sname != $suite ]; then
+                       rm -f $tmp/mirror/dists/$sname
+                       ln -s $suite $tmp/mirror/dists/$sname
+               fi
 
                cat >&3 <<END
 Suite: $sname