- dsd_dispatch=$tmp/dispatch-dir/distro=test-dummy
- mkdir -p $dsd_dispatch
- ln -sf $root $dsd_dispatch/dgit-live
- ln -sf $tmp/git $dsd_dispatch/repos
- ln -sf $tmp/suites $tmp/dm.txt $dsd_dispatch/
- mkdir -p $dsd_dispatch/keyrings
- ln -sf $tmp/dd.gpg $dsd_dispatch/keyrings/debian-keyring.gpg
- ln -sf $tmp/dm.gpg $dsd_dispatch/keyrings/debian-maintainers.gpg
- ln -sf /bin/true $dsd_dispatch/policy-hook
-
- echo 'no-such-package* drs' >$dsd_dispatch/diverts
+ echo 'no-such-package* drs' >$drs_dispatch/diverts
+}
+
+t-policy-admin () {
+ ${DGIT_INFRA_PFX}dgit-repos-admin-debian --repos $tmp/git "$@"
+}
+
+t-debpolicy () {
+ t-dsd
+
+ ln -sf ${DGIT_INFRA_PFX}dgit-repos-policy-debian \
+ $drs_dispatch/policy-hook
+
+ mkdir $tmp/git
+ t-policy-admin create-db