Skip to content
Browse files

- only set 'target' if the --rpm-os flag is set

  (Fixes #321, #314, #309, #vagrant/1277)
  • Loading branch information...
1 parent fa05a0b commit d6f9e83128246f9e28e0bb067c856f60535ca48b @jordansissel committed Dec 27, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/fpm/package/rpm.rb
View
6 lib/fpm/package/rpm.rb
@@ -200,8 +200,10 @@ def output(output_path)
args = ["rpmbuild", "-bb"]
# issue #309
- rpm_target = "#{architecture}-unknown-#{attributes[:rpm_os]}"
- args += ["--target", rpm_target]
+ if !attributes[:rpm_os].nil?
+ rpm_target = "#{architecture}-unknown-#{attributes[:rpm_os]}"
+ args += ["--target", rpm_target]
+ end
args += [
"--define", "buildroot #{build_path}/BUILD",

0 comments on commit d6f9e83

Please sign in to comment.
Something went wrong with that request. Please try again.