-#
+# -*- perl -*-
package Debian::Dgit;
use strict;
use warnings;
+use POSIX;
+
BEGIN {
use Exporter ();
our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS);
@EXPORT = qw(debiantag server_branch server_ref
stat_exists git_for_each_ref
$package_re $branchprefix);
- %EXPORT_TAGS = ( policyflags => qw() );
+ %EXPORT_TAGS = ( policyflags => [qw()] );
@EXPORT_OK = qw();
}
# calls $func->($objid,$objtype,$fullrefname,$reftail);
# $reftail is RHS of ref after refs/\w+/
# breaks if $pattern matches any ref `refs/blah' where blah has no `/'
- my $fh = new IO::File, "-|", qw(git for-each-ref), $pattern or die $!;
+ my $fh = new IO::File "-|", qw(git for-each-ref), $pattern or die $!;
while (<$fh>) {
m#^(\w+)\s+(\w+)\s+(refs/\w+/(\S+))\s# or die "$_ ?";
$func->($1,$2,$3,$4);
our $ignoredirty = 0;
our $rmonerror = 1;
our @deliberatelies;
+our %supersedes;
our $existing_package = 'dpkg';
our $cleanmode = 'dpkg-source';
our $changes_since_version;
# to control the "tagger" (b) we can do remote signing
my $authline = clogp_authline $clogp;
my $delibs = join(" ", "",@deliberatelies);
+ my $declaredistro = access_basedistro();
open TO, '>', $tfn->('.tmp') or die $!;
print TO <<END or die $!;
object $head
tagger $authline
$package release $cversion for $clogsuite ($csuite) [dgit]
-[dgit distro=$distro$delibs]
+[dgit distro=$declaredistro$delibs]
END
foreach my $ref (sort keys %supersedes) {
print TO <<END or die $!;