No functional change yet.
'mergechanges' => \@mergechanges);
our %opts_opt_cmdonly = ('gpg' => 1);
'mergechanges' => \@mergechanges);
our %opts_opt_cmdonly = ('gpg' => 1);
+our %opts_opt_cmdline_opts;
+sub finalise_opts_opts();
Push failed, before we got started.
You can retry the push, after fixing the problem, if you like.
END
Push failed, before we got started.
You can retry the push, after fixing the problem, if you like.
END
+ finalise_opts_opts();
+}
+
+sub notpushing () {
+ finalise_opts_opts();
}
sub supplementary_message ($) {
}
sub supplementary_message ($) {
sub cmd_clone {
parseopts();
sub cmd_clone {
parseopts();
my $dstdir;
badusage "-p is not allowed with clone; specify as argument instead"
if defined $package;
my $dstdir;
badusage "-p is not allowed with clone; specify as argument instead"
if defined $package;
if (!defined $package) {
my $sourcep = parsecontrol('debian/control','debian/control');
$package = getfield $sourcep, 'Source';
if (!defined $package) {
my $sourcep = parsecontrol('debian/control','debian/control');
$package = getfield $sourcep, 'Source';
badusage "-p is not allowed with dgit push" if defined $package;
check_not_dirty();
my $clogp = parsechangelog();
badusage "-p is not allowed with dgit push" if defined $package;
check_not_dirty();
my $clogp = parsechangelog();
sub cmd_clean () {
badusage "clean takes no additional arguments" if @ARGV;
sub cmd_clean () {
badusage "clean takes no additional arguments" if @ARGV;
clean_tree();
}
sub build_prep () {
clean_tree();
}
sub build_prep () {
badusage "-p is not allowed when building" if defined $package;
check_not_dirty();
clean_tree();
badusage "-p is not allowed when building" if defined $package;
check_not_dirty();
clean_tree();
!$opts_opt_cmdonly{$1} &&
($om = $opts_opt_map{$1})) {
push @ropts, $_;
!$opts_opt_cmdonly{$1} &&
($om = $opts_opt_map{$1})) {
push @ropts, $_;
+ push @{ $opts_opt_cmdline_opts{$1} }, $2;
} elsif (m/^--existing-package=(.*)/s) {
push @ropts, $_;
$existing_package = $1;
} elsif (m/^--existing-package=(.*)/s) {
push @ropts, $_;
$existing_package = $1;
+sub finalise_opts_opts () {
+ foreach my $k (keys %opts_opt_cmdline_opts) {
+ push @{ $opts_opt_map{$k} }, @{ $opts_opt_cmdline_opts{$k} };
+ }
+}
+
if ($ENV{$fakeeditorenv}) {
quilt_fixup_editor();
}
if ($ENV{$fakeeditorenv}) {
quilt_fixup_editor();
}