[SCM] ci-tooling packaging branch, master, updated. 8fe5785fd2e67dd6583216e9c0f1d930731cb587
Harald Sitter
apachelogger-guest at moszumanska.debian.org
Tue May 12 08:29:49 UTC 2015
Gitweb-URL: http://git.debian.org/?p=pkg-kde/ci-tooling.git;a=commitdiff;h=07b7ef8
The following commit has been merged in the master branch:
commit 07b7ef885139b090d4355096681d5d596eb4002c
Author: Harald Sitter <sitter at kde.org>
Date: Tue May 12 10:06:21 2015 +0200
remove duplicated queue monkeypatch from ppa_promote (now in thread_pool)
---
kci/ppa_promote.rb | 24 ------------------------
1 file changed, 24 deletions(-)
diff --git a/kci/ppa_promote.rb b/kci/ppa_promote.rb
index 90a6167..f13363f 100755
--- a/kci/ppa_promote.rb
+++ b/kci/ppa_promote.rb
@@ -31,30 +31,6 @@ LOG.warn 'PPA Promote'
Project = Struct.new(:series, :type)
project = Project.new(ENV.fetch('DIST'), ENV.fetch('TYPE'))
-class Queue
- alias_method :super_init, :initialize
-
- def initialize(array = nil)
- super_init
- return if array.nil?
- fail 'Queue can only be constructed from an Array' unless array.is_a?(Array)
- array.each { |i| self << i }
- end
-
- def to_a
- # Queue isn't exactly the most nejoable thing in the world as it doesn't
- # allow for random access so you cannot iterate over it, and it doesn't
- # implement dup nor clone so you can't deep copy it either.
- # Now since we need to iterate queue to convert it in an array and iteration
- # means destructive popping we first need to pop it into an Array and then
- # iterate over the array to push the values back into the queue. Quite mad.
- ret = []
- ret << pop until empty?
- ret.each { |i| self << i }
- ret
- end
-end
-
module VerifablePPA
EXISTING_STATES = %w(Pending Published)
--
ci-tooling packaging
More information about the pkg-kde-commits
mailing list