Commit e241da26a6b5834a353292b50147fe6ba110092e

Thomas de Grivel 2023-02-27T19:23:24

fix lock

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/rbpkg.rb b/lib/rbpkg.rb
index 70ca1a8..651766b 100644
--- a/lib/rbpkg.rb
+++ b/lib/rbpkg.rb
@@ -289,7 +289,7 @@ EOF
     path = lock_path(name)
     verbose(3, "Locking #{path}")
     while File.file?(path)
-      sleep 1000.ms
+      sleep 1
     end
     File.write(path, "")
     at_exit { FileUtils.rm(path) }