cache: Remove target directory before checking out cache

This will be empty anyway, and if its there the checkout fails.
tingping/wmclass
Alexander Larsson 2016-01-17 21:23:03 +01:00
parent 3848ae54a5
commit f2853a460b
1 changed files with 3 additions and 0 deletions

View File

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