chiark / gitweb /
Infra: in dgit-repos-policy-debian actually call getpushinfo
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 May 2015 23:10:11 +0000 (00:10 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 31 May 2015 10:54:12 +0000 (11:54 +0100)
infra/dgit-repos-policy-debian

index dd2a9c80be10bffb2828f06217d9c97a1a2edf1f..8a105366211754a5d04541bdd0d0d33724a465e6 100755 (executable)
@@ -251,6 +251,8 @@ sub deliberately ($) { return $deliberately{$_[0]}; }
 
 sub action_push () {
     getpackage();
+    getpushinfo();
+
     return 0 unless $pkg_exists;
     return 0 unless $pkg_secret;
 
@@ -275,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(<<END);
         SELECT taint_id, gitobjid FROM taints t