Correct handling of arch all packages in deb arch check. Closes: #596209

This commit is contained in:
Joey Hess
2010-09-09 08:24:54 -04:00
parent efeddebd32
commit 0d765b965d
2 changed files with 11 additions and 3 deletions

View File

@@ -491,9 +491,11 @@ sub build {
# Detect architecture mismatch and abort with a comprehensible
# error message.
my $arch=$this->arch;
my $ret=system("dpkg-architecture", "-i".$arch);
if ($ret != 0) {
die $this->filename." is for architecture ".$this->arch." ; the package cannot be built on this system"."\n";
if ($arch ne 'all') {
my $ret=system("dpkg-architecture", "-i".$arch);
if ($ret != 0) {
die $this->filename." is for architecture ".$this->arch." ; the package cannot be built on this system"."\n";
}
}
chdir $this->unpacked_tree;