X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=infra%2Fdgit-repos-policy-debian;h=8a105366211754a5d04541bdd0d0d33724a465e6;hp=7d12b6eff92a5a73f3181f4dea0dd1de9c1fde27;hb=881383cd6717e22293b0c2a912afba2c6b421a94;hpb=4950272cbef1b98c9d0e5e7b362c636473d071ee diff --git a/infra/dgit-repos-policy-debian b/infra/dgit-repos-policy-debian index 7d12b6ef..8a105366 100755 --- a/infra/dgit-repos-policy-debian +++ b/infra/dgit-repos-policy-debian @@ -20,6 +20,7 @@ enabledebuglevel $ENV{'DGIT_DRS_DEBUG'}; our $distro = shift @ARGV // die "need DISTRO"; our $repos = shift @ARGV // die "need DGIT-REPOS-DIR"; our $dgitlive = shift @ARGV // die "need DGIT-LIVE-DIR"; +our $distrodir = shift @ARGV // die "need DISTRO-DIR"; our $action = shift @ARGV // die "need ACTION"; our $publicmode = 02775; @@ -190,8 +191,8 @@ sub add_taint ($$) { $poldbh->do("INSERT INTO taintoverrides". " (taint_id, deliberately)". - " VALUES (?, 'include-questionable-history')", {}, - $taint_id); + " VALUES (?, '--deliberately-include-questionable-history')", + {}, $taint_id); } sub add_taint_by_tag ($$) { @@ -250,6 +251,8 @@ sub deliberately ($) { return $deliberately{$_[0]}; } sub action_push () { getpackage(); + getpushinfo(); + return 0 unless $pkg_exists; return 0 unless $pkg_secret; @@ -274,8 +277,9 @@ sub action_push () { sub action_push_confirm () { getpackage(); - die unless @ARGV >= 5; - my $freshrepo = $ARGV[4]; + getpushinfo(); + die unless @ARGV >= 1; + my $freshrepo = shift @ARGV; my $initq = $poldbh->prepare(<{comment} END + printdebug "SQL overrides: @overridesv $taintid /\n$overridesstmt\n"; + $overridesq ||= $poldbh->prepare($overridesstmt); $overridesq->execute(@overridesv, $taintid); my ($ovwhy) = $overridesq->fetchrow_array();