Permalink
Browse files

Fix rpm spec for os tag check

  • Loading branch information...
1 parent 2dead21 commit 26efddc9ce58688c4617e73f4fb4bfeb14ea579d @r4um r4um committed Dec 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/fpm/package/rpm_spec.rb
View
2 spec/fpm/package/rpm_spec.rb
@@ -268,7 +268,7 @@ def subject.render_template; @rpmspec = template("rpm.erb").result(binding); end
# The 'os' tag will be set to \x01 if the package 'target'
# was set incorrectly.
- insist { @rpmtags[:os] } != "\x01"
+ insist { insist { @rpmtags[:os] } == "\x01" }.fails
insist { @rpmtags[:os] } == os
insist { `rpm -q --qf '%{OS}' -p #{@target}`.chomp } == os

0 comments on commit 26efddc

Please sign in to comment.