mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-26 14:13:26 +00:00
build-export: scan repo for hardlinks on commit
This is a no-op on regular (archive) repos, but on bare repos it is an optimization if the source is a checkout from the repo. This happens in flatpak-builder (https://github.com/flatpak/flatpak-builder/pull/81) when it commits the build to the cache during --install without --repo. Closes: #1249 Approved by: alexlarsson
This commit is contained in:
parent
4e9c031005
commit
2d1c4fd72b
@ -822,6 +822,12 @@ flatpak_builtin_build_export (int argc, char **argv, GCancellable *cancellable,
|
||||
if (!ostree_repo_prepare_transaction (repo, NULL, cancellable, error))
|
||||
goto out;
|
||||
|
||||
/* This is useful only if the target is a "bare" rep, but this happens
|
||||
in flatpak-builder when commiting to the cache repo. For other repos
|
||||
this is a no-op */
|
||||
if (!ostree_repo_scan_hardlinks (repo, cancellable, error))
|
||||
goto out;
|
||||
|
||||
mtree = ostree_mutable_tree_new ();
|
||||
|
||||
if (!flatpak_mtree_create_root (repo, mtree, cancellable, error))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user