forked from Mirrors/flatpak-builder
builder: Manually zero mtime of cache checkout
This works around an ostree bug where this didn't happen in the mismatched mode (regular checkout, user repo) we're using.tingping/wmclass
parent
cc08083543
commit
4990dd5f86
|
@ -300,6 +300,13 @@ builder_cache_checkout (BuilderCache *self, const char *commit)
|
|||
NULL, NULL))
|
||||
return FALSE;
|
||||
|
||||
/* There is a bug in ostree (https://github.com/ostreedev/ostree/issues/326) that
|
||||
causes it to not reset mtime to zero in this case (mismatching modes). So
|
||||
we do that manually */
|
||||
if (!flatpak_zero_mtime (AT_FDCWD, gs_file_get_path_cached (self->app_dir),
|
||||
NULL, NULL))
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue