X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=tests%2Flib-reprepro;h=0a688f655728219330cdba551d3fd78226cf5364;hp=af331432a6820ed15ed4483f4188a6c90de375da;hb=7bed50ebbcdf503896de776c0c70656b3dfeea7e;hpb=a5ab9e488522b8fb74a6eadc4a7acf9199e782c4 diff --git a/tests/lib-reprepro b/tests/lib-reprepro index af331432..0a688f65 100644 --- a/tests/lib-reprepro +++ b/tests/lib-reprepro @@ -4,35 +4,50 @@ t-reprepro () { t_archive_method=reprepro - t-git-config dgit-distro.test-dummy.archive-query aptget: - t-git-config dgit-distro.test-dummy.mirror file://$tmp/mirror/ + t-reprepro-cfg +} + +t-reprepro-cfg () { + local rrinst=$1 + local rrdistro=${2:-test-dummy} + + local etcapt=$tmp/${rrinst}etc-apt + local mir=$tmp/${rrinst}mirror - mkdir $tmp/etc-apt - cat >$tmp/etc-apt/conf <$etcapt/conf <han.pgp fakeroot apt-key add $rrc/distributions @@ -42,10 +57,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 <