#!/bin/bash set -e . tests/lib . $troot/lib-reprepro t-setup-import examplegit t-tstunt-parsechangelog prep () { dscf=$tmp/mirror/pool/main/example_$v.dsc } check () { t-archive-none $p t-archive-query $suite t-dgit clone $p stable $p.cloned cd $p.cloned t-ref-head t-dgit import-dsc $dscf +imported t-ref-same refs/heads/imported cd .. } : ---------- older ---------- suite=stable v=1.2 prep perl -i -pe 's/^(Dgit: \w+).*/$1/' $dscf t-git-config dgit.default.old-dsc-distro test-dummy check t-ok