builder: Keep cache per arch

This just adds the arch name to the cache branch names, which
means a build on a different arch will not invalidate the other
arch:s build.

Fixes https://github.com/flatpak/flatpak/issues/628
tingping/wmclass
Alexander Larsson 2017-03-15 09:41:46 +01:00
parent e572311a26
commit 72e36b90a0
1 changed files with 1 additions and 1 deletions

View File

@ -516,7 +516,7 @@ main (int argc,
return 0;
}
cache_branch = g_path_get_basename (manifest_rel_path);
cache_branch = g_strconcat (builder_context_get_arch (build_context), "-", manifest_basename, NULL);
cache = builder_cache_new (build_context, app_dir, cache_branch);
if (!builder_cache_open (cache, &error))