}
if ($sourcestyle eq "n") {
+ $self->{'options'}{'ARGV'} = []; # ensure we have no error
Dpkg::Source::Package::V3_0::native::do_build($self, $dir);
} elsif ($sourcestyle =~ m/[nurUR]/) {
if (stat($tarname)) {
my ($dirname, $updir) = fileparse($dir);
if (scalar(@argv)) {
- usageerr(_g("-b takes only one parameter with v2.0 source packages"));
+ usageerr(_g("-b takes only one parameter with format `%s'"),
+ $self->{'fields'}{'Format'});
}
$self->prepare_build($dir);
my ($dirname, $updir) = fileparse($dir);
if (scalar(@argv)) {
- usageerr(_g("-b takes only one parameter with v3.0 source packages"));
+ usageerr(_g("-b takes only one parameter with format `%s'"),
+ $self->{'fields'}{'Format'});
}
my $sourcepackage = $self->{'fields'}{'Source'};
my ($dirname, $updir) = fileparse($dir);
if (scalar(@argv)) {
- usageerr(_g("-b takes only one parameter with v3.0 source packages"));
+ usageerr(_g("-b takes only one parameter with format `%s'"),
+ $self->{'fields'}{'Format'});
}
my $sourcepackage = $self->{'fields'}{'Source'};
sub do_build {
my ($self, $dir) = @_;
my @tar_ignore = map { "--exclude=$_" } @{$self->{'options'}{'tar_ignore'}};
+ my @argv = $self->{'options'}{'ARGV'};
+
+ if (scalar(@argv)) {
+ usageerr(_g("-b takes only one parameter with format `%s'"),
+ $self->{'fields'}{'Format'});
+ }
my $sourcepackage = $self->{'fields'}{'Source'};
my $basenamerev = $self->get_basename(1);