blob: a124930b39a6adf47953f5a0c604af3e9254bf52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#
package Debian::Dgit;
use strict;
use warnings;
BEGIN {
use Exporter ();
our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS);
$VERSION = 1.00;
@ISA = qw(Exporter);
@EXPORT = qw(debiantag
$package_re);
%EXPORT_TAGS = ( policyflags => qw() );
@EXPORT_OK = qw();
}
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/~:/_%/;
return "debian/$v";
}
1;
|