forked from Mirrors/flatpak-builder
cache: Remove target directory before checking out cache
This will be empty anyway, and if its there the checkout fails.tingping/wmclass
parent
3848ae54a5
commit
f2853a460b
|
@ -261,6 +261,9 @@ builder_cache_checkout (BuilderCache *self, const char *commit)
|
|||
if (file_info == NULL)
|
||||
return FALSE;
|
||||
|
||||
if (!g_file_delete (self->app_dir, NULL, NULL))
|
||||
return FALSE;
|
||||
|
||||
/* We check out without user mode, not necessarily because we care
|
||||
about uids not owned by the user (they are all from the build,
|
||||
so should be creatable by the user, but because we want to
|
||||
|
|
Loading…
Reference in New Issue