6 t-setup-import examplegit
7 t-tstunt-parsechangelog
9 t-git-config dgit.default.distro foreign
10 t-git-config dgit-distro.foreign.cmd-git false
13 dscf=$tmp/mirror/pool/main/example_$v.dsc
21 t-archive-query $suite
23 t-dgit clone $p $suite $pd
30 t-dgit import-dsc $dscf +imported
31 t-ref-same refs/heads/imported
43 : ---------- newer ----------
49 perl -i~ -pe 's/^Dgit: .*/$& EXTRA DATA\n TO BE IGNORED/' $dscf
53 : ---------- newline ----------
59 perl -i~ -pe 's/^(Dgit: \w+ \S+ \S+) (.*)/$1\n $2 EXTRA/' $dscf
63 : ---------- older ----------
69 perl -i -pe 's/^(Dgit: \w+).*/$1/' $dscf
73 : ---------- expect fail ----------
77 t-git-config dgit.default.old-dsc-distro downstream
79 t-expect-fail 'no configured url and .dsc provides no hint' \
80 t-dgit clone $p $suite $pd