Skip to content

Commit

Permalink
Fix rpm spec for os tag check
Browse files Browse the repository at this point in the history
  • Loading branch information
r4um committed Dec 29, 2012
1 parent 2dead21 commit 26efddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/fpm/package/rpm_spec.rb
Expand Up @@ -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
Expand Down

0 comments on commit 26efddc

Please sign in to comment.