# File lib/fpm/target/deb.rb, line 37 def architecture if @architecture.nil? or @architecture == "native" # Default architecture should be 'native' which we'll need # to ask the system about. arch = %x{dpkg --print-architecture 2> /dev/null}.chomp if $?.exitstatus != 0 arch = %x{uname -m}.chomp @logger.warn("Can't find 'dpkg' tool (need it to get default " \ "architecture!). Please specificy --architecture " \ "specifically. (Defaulting now to #{arch})") end @architecture = arch elsif @architecture == "x86_64" # Debian calls x86_64 "amd64" @architecture = "amd64" end return @architecture end