Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  (Fixes #321, #314, #309, #vagrant/1277)
  • Loading branch information...
commit d6f9e83128246f9e28e0bb067c856f60535ca48b 1 parent fa05a0b
@jordansissel authored
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",
Please sign in to comment.
Something went wrong with that request. Please try again.