pull: Call 'ensure-default-profile' after 'set-build-options'.

This is a followup to 81c580c866.

* guix/scripts/pull.scm (guix-pull): Move 'ensure-default-profile' call after
'set-build-options-from-command-line' call.  This ensures that the
'profiles/per-user/$USER' directory is created before
'ensure-default-profile' is called when 'GUIX_DAEMON_SOCKET' points to a
remote TCP daemon.
This commit is contained in:
Ludovic Courtès 2019-10-18 11:07:21 +02:00
parent 63729d9277
commit e6ea74d86c
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -772,11 +772,11 @@ (define (guix-pull . args)
(process-generation-change opts profile))
(else
(with-store store
(ensure-default-profile)
(with-status-verbosity (assoc-ref opts 'verbosity)
(parameterize ((%current-system (assoc-ref opts 'system))
(%graft? (assoc-ref opts 'graft?)))
(set-build-options-from-command-line store opts)
(ensure-default-profile)
(honor-x509-certificates store)
(let ((instances (latest-channel-instances store channels)))