summaryrefslogtreecommitdiff
path: root/Debian
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2015-03-21 10:53:10 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2015-03-22 15:19:27 +0000
commitc00456f208d26767246b28e6f06f4462a76d9ac2 (patch)
tree8fda18864a544e05d8b07acb1aded0621af83e29 /Debian
parent850c5e51043c2eb3a9804877314edefb6156e816 (diff)
Export policy hook exist status flags from Dgit.pm
Diffstat (limited to 'Debian')
-rw-r--r--Debian/Dgit.pm14
1 files changed, 13 insertions, 1 deletions
diff --git a/Debian/Dgit.pm b/Debian/Dgit.pm
index 3fe0309..a124930 100644
--- a/Debian/Dgit.pm
+++ b/Debian/Dgit.pm
@@ -13,7 +13,7 @@ BEGIN {
@ISA = qw(Exporter);
@EXPORT = qw(debiantag
$package_re);
- %EXPORT_TAGS = ( ); # eg: TAG => [ qw!name1 name2! ],
+ %EXPORT_TAGS = ( policyflags => qw() );
@EXPORT_OK = qw();
}
@@ -21,6 +21,18 @@ our @EXPORT_OK;
our $package_re = '[0-9a-z][-+.0-9a-z]*';
+
+# policy hook exit status bits
+# any unexpected bits mean failure, and then known set bits are ignored
+
+sub NOFFCHECK () { return 2; }
+# suppress dgit-repos-server's ff check ("push" only)
+
+sub FRESHREPO () { return 4; }
+# blow away repo right away (ie, as if before push or fetch)
+# ("check-package" only)
+
+
sub debiantag ($) {
my ($v) = @_;
$v =~ y/~:/_%/;