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