diff options
author | Guillem Jover <guillem@debian.org> | 2014-07-27 16:11:28 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2014-08-09 23:04:37 +0200 |
commit | de546f66a7fe7f35fb87fb1abb66a98ff4487ae9 (patch) | |
tree | 122d69e4da049e74af59576c70e38e6cc0882a91 /scripts/Dpkg/Control/HashCore.pm | |
parent | b1737a26c9a33f1bab3e886a66055fe7c30156ad (diff) | |
download | dpkg-de546f66a7fe7f35fb87fb1abb66a98ff4487ae9.tar.gz |
Dpkg::Substvars: Add automatic variable tracking
This makes the code more clear and does not require to explicitly list
the variables on output.
Diffstat (limited to 'scripts/Dpkg/Control/HashCore.pm')
-rw-r--r-- | scripts/Dpkg/Control/HashCore.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |