diff options
Diffstat (limited to 'dgit')
-rwxr-xr-x | dgit | 14 |
1 files changed, 4 insertions, 10 deletions
@@ -4147,19 +4147,13 @@ END } sub get_source_format () { - my %options; + my @options; if (open F, "debian/source/options") { while (<F>) { next if m/^\s*\#/; next unless m/\S/; s/\s+$//; # ignore missing final newline - if (m/\s*\=\s*/) { - my ($k, $v) = ($`, $'); #'); - $v =~ s/^"(.*)"$/$1/; - $options{$k} = $v; - } else { - $options{$_} = 1; - } + push @options, $_; } F->error and confess "$!"; close F; @@ -4175,7 +4169,7 @@ sub get_source_format () { F->error and confess "$!"; close F; chomp; - return wantarray ? ($_, \%options) : $_; + return wantarray ? ($_, \@options) : $_; } sub madformat_wantfixup ($) { @@ -6208,7 +6202,7 @@ sub build_maybe_quilt_fixup () { } chdir '..'; - if ($fopts->{'single-debian-patch'}) { + if (grep m{^single-debian-patch$}, @$fopts) { fail f_ "quilt mode %s does not make sense (or is not supported) with single-debian-patch", $quilt_mode |