$VERSION = 1.00;
@ISA = qw(Exporter);
- @EXPORT = qw(debiantag
- $package_re);
+ @EXPORT = qw(debiantag server_branch server_ref
+ $package_re $branchprefix);
%EXPORT_TAGS = ( policyflags => qw() );
@EXPORT_OK = qw();
}
our @EXPORT_OK;
our $package_re = '[0-9a-z][-+.0-9a-z]*';
+our $branchprefix = 'dgit';
# policy hook exit status bits
return "debian/$v";
}
+sub server_branch ($) { return "$branchprefix/$_[0]"; }
+sub server_ref ($) { return "refs/".server_branch($_[0]); }
+
1;