x86_64 -> amd64 for consistency

This commit is contained in:
Wolfgang Bumiller
2017-03-17 15:18:13 +01:00
parent ac5c32c76f
commit 0cff4ef1b5
2 changed files with 15 additions and 11 deletions
+5 -1
View File
@@ -117,6 +117,8 @@ sub read_config {
die "unable to parse config file" if $rec;
$res->{architecture} = 'amd64' if $res->{architecture} eq 'x86_64';
return $res;
}
@@ -236,10 +238,12 @@ sub initialize {
$fh = IO::File->new($self->{'pacman.conf'}, O_WRONLY|O_CREAT|O_EXCL) ||
die "unable to write pacman config file $self->{'pacman.conf'} - $!";
my $arch = $config->{architecture};
$arch = 'x86_64' if $arch eq 'amd64';
print $fh <<"EOF";
[options]
HoldPkg = pacman glibc
Architecture = $config->{architecture}
Architecture = $arch
CheckSpace
SigLevel = Never