summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2014-07-27 16:16:11 +0200
committerGuillem Jover <guillem@debian.org>2014-08-09 23:04:37 +0200
commitcdaa15c594f66b853649c70569610e5614080979 (patch)
tree6c4a0a2c965a7e038b4be94f71d767836e1e3843 /scripts
parentde546f66a7fe7f35fb87fb1abb66a98ff4487ae9 (diff)
downloaddpkg-cdaa15c594f66b853649c70569610e5614080979.tar.gz
scripts: Mark Format and Installed-Size as automatic substvars
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/dpkg-genchanges.pl2
-rwxr-xr-xscripts/dpkg-gencontrol.pl4
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/dpkg-genchanges.pl b/scripts/dpkg-genchanges.pl
index f9c7e7a54..19e40fef4 100755
--- a/scripts/dpkg-genchanges.pl
+++ b/scripts/dpkg-genchanges.pl
@@ -77,7 +77,7 @@ my $since;
my $substvars_loaded = 0;
my $substvars = Dpkg::Substvars->new();
-$substvars->set('Format', $changes_format);
+$substvars->set_as_auto('Format', $changes_format);
use constant BUILD_SOURCE => 1;
use constant BUILD_ARCH_DEP => 2;
diff --git a/scripts/dpkg-gencontrol.pl b/scripts/dpkg-gencontrol.pl
index 9359d6200..931a7a884 100755
--- a/scripts/dpkg-gencontrol.pl
+++ b/scripts/dpkg-gencontrol.pl
@@ -353,11 +353,11 @@ if (!defined($substvars->get('Installed-Size'))) {
if ($duo !~ m/^(\d+)\s+\.$/) {
error(_g("du gave unexpected output \`%s'"), $duo);
}
- $substvars->set_as_used('Installed-Size', $1);
+ $substvars->set_as_auto('Installed-Size', $1);
}
if (defined($substvars->get('Extra-Size'))) {
my $size = $substvars->get('Extra-Size') + $substvars->get('Installed-Size');
- $substvars->set_as_used('Installed-Size', $size);
+ $substvars->set_as_auto('Installed-Size', $size);
}
if (defined($substvars->get('Installed-Size'))) {
$fields->{'Installed-Size'} = $substvars->get('Installed-Size');