From: Ian Jackson Date: Mon, 7 Nov 2016 02:57:17 +0000 (+0000) Subject: Test suite: lib-reprepro: cope with non-codenamed suites X-Git-Tag: archive/debian/2.10~23 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=4aef1efb3d664833579658706e0a185cbd0c2883 Test suite: lib-reprepro: cope with non-codenamed suites Signed-off-by: Ian Jackson --- diff --git a/tests/lib-reprepro b/tests/lib-reprepro index 87020444..d025d48d 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 <