[SCM] ci-tooling packaging branch, master, updated. 8859b18a8323ded1c665486d309ca78afd53b62a

Harald Sitter apachelogger-guest at moszumanska.debian.org
Fri May 29 08:44:14 UTC 2015


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

The following commit has been merged in the master branch:
commit 8859b18a8323ded1c665486d309ca78afd53b62a
Author: Harald Sitter <sitter at kde.org>
Date:   Fri May 29 10:44:10 2015 +0200

    enforce right amount of source matches in publishing
---
 kci/source_publisher.rb | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/kci/source_publisher.rb b/kci/source_publisher.rb
index 8240ae1..25103ae 100755
--- a/kci/source_publisher.rb
+++ b/kci/source_publisher.rb
@@ -178,6 +178,8 @@ class SourcePublisher
     return @source if defined?(@source)
     sources = @ppa.getPublishedSources(source_name: @source_name, version: @source_version, exact_match: true)
     # TODO: handle too many matches, handle too few matches, handle raise
+    return nil if sources.size < 1
+    fail "Unexpectedly too many matching sources #{sources}" if sources.size > 1
     puts "source: #{sources[0]}"
     @source = sources[0]
   end

-- 
ci-tooling packaging



More information about the pkg-kde-commits mailing list