X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=tests%2Flib-reprepro;h=88102c89741f310b0b97730794b40cb2a16e61df;hp=af331432a6820ed15ed4483f4188a6c90de375da;hb=05429577db36fa4e71743f3695e03e2d19bf509e;hpb=c5e48c92d1d589c55fb952ee623b5b4c66267d3c diff --git a/tests/lib-reprepro b/tests/lib-reprepro index af331432..88102c89 100644 --- a/tests/lib-reprepro +++ b/tests/lib-reprepro @@ -4,17 +4,24 @@ t-reprepro () { t_archive_method=reprepro + t-reprepro-cfg +} + +t-reprepro-cfg () { + local etcapt=$tmp/etc-apt + local mir=$tmp/mirror + t-git-config dgit-distro.test-dummy.archive-query aptget: - t-git-config dgit-distro.test-dummy.mirror file://$tmp/mirror/ + t-git-config dgit-distro.test-dummy.mirror file://$mir/ - mkdir $tmp/etc-apt - cat >$tmp/etc-apt/conf <$etcapt/conf <han.pgp fakeroot apt-key add $rrc/distributions @@ -42,10 +50,10 @@ t-reprepro-setup () { local suite=${suitespec%%:*} local sname=${suitespec#*:} - mkdir -p $tmp/mirror/dists + mkdir -p $mir/dists if [ $sname != $suite ]; then - rm -f $tmp/mirror/dists/$sname - ln -s $suite $tmp/mirror/dists/$sname + rm -f $mir/dists/$sname + ln -s $suite $mir/dists/$sname fi cat >&3 <