summaryrefslogtreecommitdiff
path: root/tests/lib-reprepro
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2016-11-07 02:57:17 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2016-11-07 02:57:17 +0000
commit4aef1efb3d664833579658706e0a185cbd0c2883 (patch)
tree5f49741845ef28f2381628158a04490a0ab1243f /tests/lib-reprepro
parent55baff9611db96f385236e9e412785ba0a26de13 (diff)
Test suite: lib-reprepro: cope with non-codenamed suites
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests/lib-reprepro')
-rw-r--r--tests/lib-reprepro8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/lib-reprepro b/tests/lib-reprepro
index 8702044..d025d48 100644
--- a/tests/lib-reprepro
+++ b/tests/lib-reprepro
@@ -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