aboutsummaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/ruby/net-ssh-multi/gemspec-don-t-force-the-use-of-gem-private_key.pem.patch
blob: ece04658dce9520036b094b653cdac1e00cc32bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From f9bade1e428b924de09228acbd6545ffb3c9c04c Mon Sep 17 00:00:00 2001
From: Li xin <lixin.fnst@cn.fujitsu.com>
Date: Mon, 20 Jul 2015 22:24:10 +0900
Subject: [PATCH] gemspec: don't force the use of gem-private_key.pem

This will have security implications but it doesn't affect
core functionality and allows the build to complete when
this certificate is not available.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
---
 net-ssh-multi.gemspec | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/net-ssh-multi.gemspec b/net-ssh-multi.gemspec
index 5b3bbe7..f499739 100644
--- a/net-ssh-multi.gemspec
+++ b/net-ssh-multi.gemspec
@@ -48,7 +48,9 @@ Gem::Specification.new do |s|
   s.require_paths = ["lib"]
   s.rubyforge_project = "net-ssh-multi"
   s.rubygems_version = "1.8.23"
-  s.signing_key = "/mnt/gem/gem-private_key.pem"
+  if File.exists?("/mnt/gem/gem-private_key.pem")
+    s.signing_key = "/mnt/gem/gem-private_key.pem"
+  end
   s.summary = "Control multiple Net::SSH connections via a single interface."
 
   if s.respond_to? :specification_version then
-- 
1.8.4.2