chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test suite: Introduce t-ok.
[dgit.git]
/
tests
/
lib-reprepro
diff --git
a/tests/lib-reprepro
b/tests/lib-reprepro
index 87020444f8aa182614bc03e1ab9394f093fb1586..d025d48dd40747738dc497b0cf3733f43b78ee21 100644
(file)
--- a/
tests/lib-reprepro
+++ b/
tests/lib-reprepro
@@
-42,9
+42,11
@@
t-reprepro-setup () {
local suite=${suitespec%%:*}
local sname=${suitespec#*:}
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
cat >&3 <<END
Suite: $sname