diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-06-13 17:46:59 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-06-13 17:46:59 +0100 |
commit | c53009bb5cec05846492267a60686f051c33fef4 (patch) | |
tree | a1715ac9b0c18a96b32a27bd35ae996cb5988568 /infra | |
parent | c87d23986f3ce60c2d1a780a9e20dc77d4a2cd86 (diff) |
Infra: dgit-repos-server-debian: Break out check_package core
Diffstat (limited to 'infra')
-rwxr-xr-x | infra/dgit-repos-policy-debian | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/infra/dgit-repos-policy-debian b/infra/dgit-repos-policy-debian index e02c100..9c2153d 100755 --- a/infra/dgit-repos-policy-debian +++ b/infra/dgit-repos-policy-debian @@ -206,8 +206,7 @@ sub add_taint_by_tag ($$) { " removed from NEW (ie, rejected) (or never arrived)"); } -sub action_check_package () { - getpackage(); +sub check_package () { return 0 unless $pkg_exists; return 0 unless $pkg_secret; @@ -239,6 +238,11 @@ sub action_check_package () { return FRESHREPO; } +sub action_check_package () { + getpackage(); + return check_package(); +} + sub getpushinfo () { die unless @ARGV >= 4; $version = shift @ARGV; |