summaryrefslogtreecommitdiff
path: root/scripts/Dpkg/Control
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2014-07-27 16:11:28 +0200
committerGuillem Jover <guillem@debian.org>2014-08-09 23:04:37 +0200
commitde546f66a7fe7f35fb87fb1abb66a98ff4487ae9 (patch)
tree122d69e4da049e74af59576c70e38e6cc0882a91 /scripts/Dpkg/Control
parentb1737a26c9a33f1bab3e886a66055fe7c30156ad (diff)
downloaddpkg-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')
-rw-r--r--scripts/Dpkg/Control/HashCore.pm2
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) {