Commit 3392705e authored by Lucas Nussbaum's avatar Lucas Nussbaum

upstream: add a timeout on the uscan command, because the internal uscan...

upstream: add a timeout on the uscan command, because the internal uscan timeout seems to sometimes fail
parent d2f41ad4
......@@ -79,7 +79,7 @@ module Upstream
end
# make sure that we use /etc/ssl/ca-global even in git; see https://lists.debian.org/debian-qa/2016/05/msg00029.html
system("dir=/etc/ssl/ca-global && test -d $dir && git config --global --replace-all http.sslCAInfo $dir/ca-certificates.crt")
cmd = "cd #{d} && HTTPS_CA_DIR=/etc/ssl/ca-global uscan --pasv --dehs --no-download --watchfile debian/watch --package #{source} --upstream-version #{version}"
cmd = "cd #{d} && HTTPS_CA_DIR=/etc/ssl/ca-global timeout 5m uscan --pasv --dehs --no-download --watchfile debian/watch --package #{source} --upstream-version #{version}"
#p cmd
stdout, stderr, status = Open3.capture3(cmd)
FileUtils::rm_rf(d)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment