fetcher: Always open tmpfiles in repo location
authorColin Walters <walters@verbum.org>
Tue, 6 Jun 2023 21:09:30 +0000 (17:09 -0400)
committerColin Walters <walters@verbum.org>
Tue, 6 Jun 2023 21:09:30 +0000 (17:09 -0400)
commitf7f6f87c513c9f35bc24f35e909779c19cb49d3a
treeaa1871500aa34d12cee28a57c5b30b26d87c9ce0
parent8762062648bb72b44a5cb21a83b303bbfcfc2253
fetcher: Always open tmpfiles in repo location

In an installation environment (like a live ISO) we may
not have significant space outside of the target installation
repository.

There's no reason not to always open a linkable tempfile.  In
the future we should fix the pull path to verify the checksum
and then just directly link in the object instead of copying.

Closes: https://github.com/ostreedev/ostree/issues/2571
src/libostree/ostree-fetcher-util.h