summaryrefslogtreecommitdiff
path: root/scripts/Dpkg/Control
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2012-12-17 17:30:24 +0100
committerGuillem Jover <guillem@debian.org>2013-06-21 20:29:16 +0200
commit7e856060484c653b054726b1523a3ed3745e47ce (patch)
tree32be249915576ae8d5d5fd2e60d8424683fc9313 /scripts/Dpkg/Control
parent71d6e1b6c16df782dbe2736a285e7bd9040becd4 (diff)
downloaddpkg-7e856060484c653b054726b1523a3ed3745e47ce.tar.gz
Dpkg::Control::Hash: Fix set_options to take a hash instead of two scalars
This fixes the function to behave as documented, and expected from the name itself.
Diffstat (limited to 'scripts/Dpkg/Control')
-rw-r--r--scripts/Dpkg/Control/Hash.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/Dpkg/Control/Hash.pm b/scripts/Dpkg/Control/Hash.pm
index 038ac539a..ed7587dbd 100644
--- a/scripts/Dpkg/Control/Hash.pm
+++ b/scripts/Dpkg/Control/Hash.pm
@@ -136,8 +136,8 @@ Changes the value of one or more options.
=cut
sub set_options {
- my ($self, $k, $v) = @_;
- $$self->{$k} = $v;
+ my ($self, %opts) = @_;
+ $$self->{$_} = $opts{$_} foreach keys %opts;
}
=item my $value = $c->get_option($option)