summaryrefslogtreecommitdiff
path: root/scripts/Dpkg/Substvars.pm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Dpkg/Substvars.pm')
-rw-r--r--scripts/Dpkg/Substvars.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/Dpkg/Substvars.pm b/scripts/Dpkg/Substvars.pm
index 0c2ce5373..be2658013 100644
--- a/scripts/Dpkg/Substvars.pm
+++ b/scripts/Dpkg/Substvars.pm
@@ -201,8 +201,7 @@ This will never be warned about when unused.
sub set_arch_substvars {
my ($self) = @_;
- $self->{'vars'}{'Arch'} = get_host_arch();
- $self->no_warn('Arch');
+ $self->set_as_used('Arch', get_host_arch());
}
=item $newstring = $s->substvars($string)