Skip to content

Commit

Permalink
- quiet stderr from dpkg --print-architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
jordansissel committed Oct 11, 2011
1 parent 246e53a commit 1a02cbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fpm/target/deb.rb
Expand Up @@ -33,7 +33,7 @@ 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}.chomp
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 " \
Expand Down

0 comments on commit 1a02cbc

Please sign in to comment.