diff options
author | Guillem Jover <guillem@debian.org> | 2017-01-25 03:30:35 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2017-01-25 04:02:40 +0100 |
commit | 028bfa99a016ae133e451d606d7b88a2975b5680 (patch) | |
tree | 00e9a706e92c5a638956f5a24700c73e2ee27f31 /scripts/t | |
parent | 2f05b55f031371458f6903fae4bfebacc555bd07 (diff) | |
download | dpkg-028bfa99a016ae133e451d606d7b88a2975b5680.tar.gz |
test: Correctly iterate over all default and passed .dsc template substvars
The code was returning all keys and values for %default_substvars,
when instead we should have been requesting all %default_substvars
and %options keys.
Diffstat (limited to 'scripts/t')
-rw-r--r-- | scripts/t/dpkg_source.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/t/dpkg_source.t b/scripts/t/dpkg_source.t index 974e3719c..2de0c0dbb 100644 --- a/scripts/t/dpkg_source.t +++ b/scripts/t/dpkg_source.t @@ -89,7 +89,7 @@ sub gen_source my (%options) = @_; my $substvars = Dpkg::Substvars->new(); - foreach my $var (%default_substvars) { + foreach my $var ((keys %default_substvars, keys %options)) { my $value = $options{$var} // $default_substvars{$var}; $substvars->set_as_auto($var, $value); |