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=d025d48dd40747738dc497b0cf3733f43b78ee21;hb=0c244082ddb4b2443ccfbc1c438ead4fda1c33ca;hpb=f773b1ed2796196e0fa801886fce493544c38fe0 diff --git a/tests/lib-reprepro b/tests/lib-reprepro index d025d48d..0a688f65 100644 --- a/tests/lib-reprepro +++ b/tests/lib-reprepro @@ -4,48 +4,63 @@ 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 - local arch=`dpkg --print-architecture` + local arch; arch=`dpkg --print-architecture` for suitespec in $suitespecs; do 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 <