diff options
author | Guillem Jover <guillem@debian.org> | 2012-05-21 03:53:21 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2012-05-23 09:09:24 +0200 |
commit | 48e27cb350becbccf3d30b89ac92b20c7816f8ee (patch) | |
tree | 49dead561c03d1dd059e07cc336890e0d3acc58c /scripts/Dpkg/Control | |
parent | bfc61827201aadb05bdff25e259490a02c5319e5 (diff) | |
download | dpkg-48e27cb350becbccf3d30b89ac92b20c7816f8ee.tar.gz |
scripts: Use new member set_as_used() instead of ad-hoc code
Use the new member instead of setting and then marking the substvars.
Diffstat (limited to 'scripts/Dpkg/Control')
-rw-r--r-- | scripts/Dpkg/Control/Hash.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/Dpkg/Control/Hash.pm b/scripts/Dpkg/Control/Hash.pm index 5ab28c1d5..fabcf68de 100644 --- a/scripts/Dpkg/Control/Hash.pm +++ b/scripts/Dpkg/Control/Hash.pm @@ -355,8 +355,7 @@ sub apply_substvars { # Add substvars to refer to other fields foreach my $f (keys %$self) { - $substvars->set("F:$f", $self->{$f}); - $substvars->no_warn("F:$f"); + $substvars->set_as_used("F:$f", $self->{$f}); } foreach my $f (keys %$self) { |