pack: Import (guix store database) only when '--localstatedir' is passed.
authorLudovic Courtès <ludo@gnu.org>
Sat, 27 Oct 2018 22:17:08 +0000 (00:17 +0200)
committerLudovic Courtès <ludo@gnu.org>
Tue, 6 Nov 2018 22:21:23 +0000 (23:21 +0100)
commitb27ef1d46cfdc3c994b106241f99cd7142083d13
tree2cca585abb389b6826b304c49e5ca9f21410540f
parentec4c81fe32a90890a6190443248078ce7366503f
pack: Import (guix store database) only when '--localstatedir' is passed.

This is another way to address <https://bugs.gnu.org/32184>, which was
previously addressed in commit 19c924af4f3726688ca155a905ebf1cb9acdfca2.

* gnu/build/install.scm (register-closure): Move to...
* gnu/build/vm.scm (register-closure): ... here.  New procedure.
* guix/scripts/pack.scm (self-contained-tarball)[build]: Remove
now unneeded 'with-extensions' form and custom (guix config) module.
* tests/guix-pack.sh: Revert the strategy from
commit 19c924af4f3726688ca155a905ebf1cb9acdfca2.
* tests/pack.scm ("self-contained-tarball"): Likewise.
gnu/build/install.scm
gnu/build/vm.scm
guix/scripts/pack.scm
tests/guix-pack.sh
tests/pack.scm