[Libguestfs] [supermin PATCH v2 3/4] Act on --if-newer only for build mode
Pino Toscano
ptoscano at redhat.com
Fri Apr 3 15:40:36 UTC 2020
This option is specific for the build mode, so do not use it when the
mode is a different one.
---
src/supermin.ml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/supermin.ml b/src/supermin.ml
index 80c48e6..6e93b83 100644
--- a/src/supermin.ml
+++ b/src/supermin.ml
@@ -234,7 +234,7 @@ appliance automatically.
* does not exist, or if the dates of either input files or package
* database is newer, then we rebuild. Else we can just exit.
*)
- if if_newer then (
+ if mode = Build && if_newer then (
try
let odate = (lstat outputdir).st_mtime in
let idates = List.map (fun d -> (lstat d).st_mtime) inputs in
--
2.25.1
More information about the Libguestfs
mailing list