Commit 9088f41a089d5804a63eddc74d61c33e48ef9f10

Thomas de Grivel 2023-02-28T12:15:40

debug

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/lib/rbpkg.rb b/lib/rbpkg.rb
index 1519690..9a9d433 100644
--- a/lib/rbpkg.rb
+++ b/lib/rbpkg.rb
@@ -171,7 +171,8 @@ EOF
             d_name = "#{d}/#{name}"
             file = "#{name}.status"
             if ! File.exist?(file) || File.mtime(file) <= File.mtime(subdir_file)
-              cmd! "cp -a #{sh_quote(subdir_file)} #{sh_quote(file)}"
+              c = "cp -a #{sh_quote(subdir_file)} #{sh_quote(file)}"
+              raise "command failed: #{c}" unless system(c)
               if ! status[name]
                 status[name] = {}
               end