dgit (2.17~) unstable; urgency=medium
+ Bugfixes:
+ * dgit config handling: Honour command-line and context-provided
+ suite and distro more reliably and consistently.
+
dgit-badcommit-fixup:
* Do not investigate symrefs. Closes:#850547.
} keys %opts_opt_map;
sub finalise_opts_opts();
+sub parseopts_late_defaults();
our $keyid;
sub cmd_clone {
parseopts();
- notpushing();
my $dstdir;
badusage "-p is not allowed with clone; specify as argument instead"
if defined $package;
} else {
badusage "incorrect arguments to dgit clone";
}
- $dstdir ||= "$package";
+ notpushing();
+ $dstdir ||= "$package";
if (stat_exists $dstdir) {
fail "$dstdir already exists";
}
}
sub cmd_build {
+ build_prep_early();
my @dbp = (@dpkgbuildpackage, qw(-us -uc), changesopts_initial(), @ARGV);
my $wantsrc = massage_dbp_args \@dbp;
if ($wantsrc > 0) {
}
sub cmd_build_source {
+ build_prep_early();
badusage "build-source takes no additional arguments" if @ARGV;
build_source();
maybe_unapply_patches_again();
@$om[$insertpos..$#$om] );
}
}
+
+ parseopts_late_defaults();
}
if ($ENV{$fakeeditorenv}) {
}
}
-parseopts_late_defaults();
-
my $fn = ${*::}{"cmd_$cmd"};
$fn or badusage "unknown operation $cmd";
$fn->();