5 t_archive_method=reprepro
12 local rrdistro=${2:-test-dummy}
14 local etcapt=$tmp/${rrinst}etc-apt
15 local mir=$tmp/${rrinst}mirror
17 t-git-config dgit-distro.$rrdistro.archive-query aptget:
18 t-git-config dgit-distro.$rrdistro.mirror file://$mir/
21 cat >$etcapt/conf <<END
24 export APT_CONFIG=$etcapt/conf
25 gpg --export Hannibal >han.pgp
26 fakeroot apt-key add <han.pgp
27 mkdir $etcapt/apt.conf.d
30 t-archive-none-reprepro () { # hook called by t-archive-none
35 t-archive-query-reprepro () { # hook called by t-archive-query
41 t-reprepro-includedsc $suite $tmp/mirror/pool/$dscf "$rrinst"
47 local mir=$tmp/${rrinst}mirror
50 mkdir -p $mir/pool/main
52 exec 3>$rrc/distributions
54 local arch; arch=`dpkg --print-architecture`
56 for suitespec in $suitespecs; do
57 local suite=${suitespec%%:*}
58 local sname=${suitespec#*:}
61 if [ $sname != $suite ]; then
62 rm -f $mir/dists/$sname
63 ln -s $suite $mir/dists/$sname
70 Architectures: source binary-$arch
77 t-reprepro-includedsc () {
81 t-reprepro--run includedsc $suite $dscf
85 # caller is supposed to have set rrinst
86 local mir=$tmp/${rrinst}mirror
96 t-reprepro--run export