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
Alexander Larsson 2016-06-08 11:11:24 +02:00
parent cc08083543
commit 4990dd5f86
1 changed files with 7 additions and 0 deletions

View File

@ -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;
}