[SCM] ci-tooling packaging branch, master, updated. 310b602e3cc4b1f5f581829a0adcaea60770cead
Harald Sitter
apachelogger-guest at moszumanska.debian.org
Tue Aug 25 08:22:20 UTC 2015
Gitweb-URL: http://git.debian.org/?p=pkg-kde/ci-tooling.git;a=commitdiff;h=310b602
The following commit has been merged in the master branch:
commit 310b602e3cc4b1f5f581829a0adcaea60770cead
Author: Harald Sitter <sitter at kde.org>
Date: Tue Aug 25 10:22:16 2015 +0200
also retry posting
---
lib/lp.rb | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/lib/lp.rb b/lib/lp.rb
index a11fc26..82de52b 100644
--- a/lib/lp.rb
+++ b/lib/lp.rb
@@ -160,9 +160,11 @@ module Launchpad
token = Launchpad.token
fail 'Launchpad.authenticate must be called before any post' unless token
# Posting always requires a token.
- response = token.post(uri.path, uri.query)
- fail Net::HTTPRetriableError.new(response.body, response) unless response.is_a? Net::HTTPSuccess
- response.body
+ Retry.retry_it(times: 2, sleep: 8) do
+ response = token.post(uri.path, uri.query)
+ fail Net::HTTPRetriableError.new(response.body, response) unless response.is_a? Net::HTTPSuccess
+ return response.body
+ end
end
# Unlike launchpadlib we strive for minimal overhead by minimal validation.
--
ci-tooling packaging
More information about the pkg-kde-commits
mailing list