From 323e5e59ee548bf44cc2cb9a584cb1c3edcabe3f Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 19 Apr 2015 21:26:47 +0100 Subject: New policy admin script --- infra/dgit-repos-policy-debian | 39 ++------------------------------------- 1 file changed, 2 insertions(+), 37 deletions(-) (limited to 'infra/dgit-repos-policy-debian') diff --git a/infra/dgit-repos-policy-debian b/infra/dgit-repos-policy-debian index 7e459cc..fa1d17d 100755 --- a/infra/dgit-repos-policy-debian +++ b/infra/dgit-repos-policy-debian @@ -7,13 +7,13 @@ use JSON; use File::Temp; use Debian::Dgit qw(:DEFAULT :policyflags); +use Debian::Dgit::Policy::Debian; our $distro = shift @ARGV // die "need DISTRO"; our $repos = shift @ARGV // die "need DGIT-REPOS-DIR"; our $action = shift @ARGV // die "need ACTION"; our $publicmode = 02775; -our $policydb = "dbi:SQLite:$repos/policy.sqlite3"; our $new_upload_propagation_slop = 3600*4 + 100; our $poldbh; @@ -71,41 +71,6 @@ our %deliberately; # - .dsc of NEW dgit package has corresponding dgit-repo but not # publicly readable -sub poldb_setup () { - $poldbh ||= DBI->connect($policydb,'','', { - RaiseError=>1, PrintError=>1, AutoCommit=>0 - }); - $poldbh->do("PRAGMA foreign_keys = ON"); - - $poldbh->do(<do(<do(<(); -- cgit v1.2.3