From 1487f0e51156dedc0121f5e17d6d7cf6f3a19b2f Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 27 Dec 2022 17:35:47 +0000 Subject: dgit-repos-policy-debian: package_questionable_head_msg: break out We're going to want to reuse this. Signed-off-by: Ian Jackson --- infra/dgit-repos-policy-debian | 38 +++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/infra/dgit-repos-policy-debian b/infra/dgit-repos-policy-debian index f110fa3..cb69211 100755 --- a/infra/dgit-repos-policy-debian +++ b/infra/dgit-repos-policy-debian @@ -312,14 +312,34 @@ sub getpushinfo () { sub deliberately ($) { return $deliberately{"--deliberately-$_[0]"}; } +sub package_questionable_head_msg () { + return undef unless $pkg_exists; + return undef unless $pkg_secret; + # TODO: ideally this would be translated at the client end but + # that would involve marking it i_ here (which is part of + # dgit-intrastructure.deb) and then having the string appear in + # the po for dgit.deb. + return <