Permalink
Browse files

Fix spec for deb arch defaults

  • Loading branch information...
1 parent 4baf4f4 commit 834d3e070bbbe2e89e0074e49fb61e06bbd13daa @jordansissel committed Aug 24, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 spec/fpm/package/deb_spec.rb
@@ -23,9 +23,13 @@
end
it "should default to native" do
+ expected = ""
if program_in_path?("dpkg")
expected = %x{dpkg --print-architecture}.chomp
- else
+ end
+
+ if expected.empty?
+ # dpkg was missing, failed, or emitted nothing.
expected = %x{uname -m}.chomp
end

0 comments on commit 834d3e0

Please sign in to comment.