From de546f66a7fe7f35fb87fb1abb66a98ff4487ae9 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Sun, 27 Jul 2014 16:11:28 +0200 Subject: Dpkg::Substvars: Add automatic variable tracking This makes the code more clear and does not require to explicitly list the variables on output. --- scripts/Dpkg/Control/HashCore.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/Dpkg/Control/HashCore.pm') diff --git a/scripts/Dpkg/Control/HashCore.pm b/scripts/Dpkg/Control/HashCore.pm index 83d3bbbe4..b23a77cea 100644 --- a/scripts/Dpkg/Control/HashCore.pm +++ b/scripts/Dpkg/Control/HashCore.pm @@ -397,7 +397,7 @@ sub apply_substvars { # Add substvars to refer to other fields foreach my $f (keys %$self) { - $substvars->set_as_used("F:$f", $self->{$f}); + $substvars->set_as_auto("F:$f", $self->{$f}); } foreach my $f (keys %$self) { -- cgit v1.2.3