[SCM] ci-tooling packaging branch, master, updated. 4ba4cd4d4db0370792c24161be05653afa8b3625

Harald Sitter apachelogger-guest at moszumanska.debian.org
Wed Feb 25 15:43:17 UTC 2015


Gitweb-URL: http://git.debian.org/?p=pkg-kde/ci-tooling.git;a=commitdiff;h=c1f8639

The following commit has been merged in the master branch:
commit c1f86399306031596f0ab2c8b556b30315d44920
Author: Harald Sitter <sitter at kde.org>
Date:   Wed Feb 25 16:42:35 2015 +0100

    refine sign and make it rubocop happy
---
 kci/sign.rb | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/kci/sign.rb b/kci/sign.rb
index cc357ad..3ac5af3 100755
--- a/kci/sign.rb
+++ b/kci/sign.rb
@@ -1,9 +1,10 @@
 CHANGES = ARGV[0]
-KEYID = ARGV[1]
 
-raise "No changes file/path specified." unless CHANGES
-raise "No signing key specified." unless KEYID
+fail 'No changes file/path specified.' unless CHANGES
 
-warn "Need to do path meddling, also this is a host tool"
+args = []
+args << '--no-re-sign'
+args << '-k' << env['KEYID'] if env.key?('KEYID')
+args << CHANGES
 
-raise "Signing the source package failed." unless system("debsign --no-re-sign -k#{KEYID} #{CHANGES}")
+fail 'Signing the source package failed.' unless system('debsign', *args)

-- 
ci-tooling packaging



More information about the pkg-kde-commits mailing list