Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Act on --if-newer only for build mode
This option is specific for the build mode, so do not use it when the
mode is a different one.
  • Loading branch information
ptoscano committed Apr 3, 2020
1 parent cc8a01d commit 002e2a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/supermin.ml
Expand Up @@ -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
Expand Down

0 comments on commit 002e2a2

Please sign in to comment.