aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2022-09-25 17:08:33 +0000
committerPascal Terjan <pterjan@mageia.org>2022-09-25 17:08:33 +0000
commitf165a4820e7514eecced312ad558831c2783d3c0 (patch)
treee0e8e59b2c7de3b22d1922d0b5eb2afadc1294ea
parent4fd9d259b5ac24b0adbb02d62d798b918dc581e2 (diff)
downloadpuppet-f165a4820e7514eecced312ad558831c2783d3c0.tar
puppet-f165a4820e7514eecced312ad558831c2783d3c0.tar.gz
puppet-f165a4820e7514eecced312ad558831c2783d3c0.tar.bz2
puppet-f165a4820e7514eecced312ad558831c2783d3c0.tar.xz
puppet-f165a4820e7514eecced312ad558831c2783d3c0.zip
Remove debug mesages
-rwxr-xr-xmodules/buildsystem/templates/cleaner.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/modules/buildsystem/templates/cleaner.rb b/modules/buildsystem/templates/cleaner.rb
index 40473170..906a03c6 100755
--- a/modules/buildsystem/templates/cleaner.rb
+++ b/modules/buildsystem/templates/cleaner.rb
@@ -106,16 +106,13 @@ def take_upload_lock(path)
}
until has_lock
while File.exists?(path)
- puts "Upload in progress..."
if Time.new - start_time > 2*3600.0
puts "Could not aquire upload lock for more than 2h, giving up"
end
sleep(5)
end
- puts "Taking upload lock"
File.write(path, Process.pid)
if File.readlines(path)[0].to_i == Process.pid
- puts "Succesfuly took upload lock"
has_lock = true
end
end