Commit 9536eaea60fa72f2d4351bf66600842d2c626372

Thomas de Grivel 2023-02-27T13:08:47

touch

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/lib/rbpkg.rb b/lib/rbpkg.rb
index a5399cc..09c02c9 100644
--- a/lib/rbpkg.rb
+++ b/lib/rbpkg.rb
@@ -64,6 +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)
               case s = File.read(file).strip
               when "running"
                 status[name] = :running