summaryrefslogtreecommitdiff
path: root/scripts/Dpkg/Control
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2012-05-21 03:53:21 +0200
committerGuillem Jover <guillem@debian.org>2012-05-23 09:09:24 +0200
commit48e27cb350becbccf3d30b89ac92b20c7816f8ee (patch)
tree49dead561c03d1dd059e07cc336890e0d3acc58c /scripts/Dpkg/Control
parentbfc61827201aadb05bdff25e259490a02c5319e5 (diff)
downloaddpkg-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.pm3
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) {