add fix for debian's 64bit x86 naming

This commit is contained in:
Jordan Sissel 2012-03-08 13:29:13 -08:00
parent ae06ab4212
commit 46db2b7893
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,8 @@ class FPM::Package::RPM < FPM::Package
case @architecture
when nil
return %x{uname -m}.chomp # default to current arch
when "amd64" # debian and redhat disagree on architecture names
return "x86_64"
when "native"
return %x{uname -m}.chomp # 'native' is current arch
when "all"