cache: Remove target directory before checking out cache

This will be empty anyway, and if its there the checkout fails.
This commit is contained in:
Alexander Larsson committed 2016-01-17 21:23:03 +01:00
1 parent 3848ae54a5
commit f2853a460b
1 file changed
+3
+3
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