From 48e27cb350becbccf3d30b89ac92b20c7816f8ee Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Mon, 21 May 2012 03:53:21 +0200 Subject: scripts: Use new member set_as_used() instead of ad-hoc code Use the new member instead of setting and then marking the substvars. --- scripts/Dpkg/Control/Hash.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts/Dpkg/Control/Hash.pm') 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) { -- cgit v1.2.3