guix-register: Support registration in the current store, without '--prefix'.
authorLudovic Courtès <ludo@gnu.org>
Sat, 11 Jan 2014 15:55:04 +0000 (16:55 +0100)
committerLudovic Courtès <ludo@gnu.org>
Thu, 23 Jan 2014 23:01:49 +0000 (00:01 +0100)
commit349fd3b11f320453ad8eeb3031621d0ffcaf078d
tree31cabce1d4fc986e2b43cb0af94844a3b6db90f7
parent5674a3fdb6b4b0f744e2339167d415d8a7a265a0
guix-register: Support registration in the current store, without '--prefix'.

* nix/guix-register/guix-register.cc (register_validity): Leave
  'info.path' unmodified when PREFIX is empty.
  (main): Call 'settings.processEnvironment' early on.
  Leave 'settings.nixStore' unmodified when PREFIX is empty.
nix/guix-register/guix-register.cc
tests/guix-register.sh