Commit d60fbf93e414cc6d297b4eaf473b3d92dfb1eed3

Thomas de Grivel 2023-02-27T13:09:38

touch

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/rbpkg.rb b/lib/rbpkg.rb
index 09c02c9..26dfc4a 100644
--- a/lib/rbpkg.rb
+++ b/lib/rbpkg.rb
@@ -64,7 +64,7 @@ module Rbpkg
             file = "#{name}.status"
             if ! status[name] || ! FileUtils.uptodate?(file, [subdir_file])
               FileUtils.cp(subdir_file, file)
-              FileUtils.touch(file, mtime: subdir_file.mtime)
+              FileUtils.touch(file, mtime: File.mtime(subdir_file))
               case s = File.read(file).strip
               when "running"
                 status[name] = :running