Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix #141 Add --rpm-sign option #311

Merged
merged 1 commit into from

2 participants

@r4um
Collaborator
  • Fix #141 Add --rpm-sign option to pass --sign to rpmbuild.
@jordansissel jordansissel merged commit 4a92657 into from
@miketheman miketheman referenced this pull request in DataDog/dd-agent
Open

Sign our RPMs #144

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 7, 2012
  1. @r4um

    Add --rpm-sign option

    r4um authored
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/fpm/package/rpm.rb
View
4 lib/fpm/package/rpm.rb
@@ -75,6 +75,8 @@ class FPM::Package::RPM < FPM::Package
File.read(File.expand_path(file))
end
+ option "--sign", :flag, "Pass --sign to rpmbuild"
+
private
# Handle any architecture naming conversions.
@@ -206,6 +208,8 @@ def output(output_path)
rpm_target = "#{architecture}-unknown-#{attributes[:rpm_os]}"
args += ["--target", rpm_target]
+ args += ["--sign"] if attributes[:rpm_sign?]
+
(attributes[:rpm_rpmbuild_define] or []).each do |define|
args += ["--define", define]
end
Something went wrong with that request. Please try again.