aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/templates/cleaner.rb
diff options
context:
space:
mode:
Diffstat (limited to 'modules/buildsystem/templates/cleaner.rb')
-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