diff options
author | Ludovic Courtès <ludo@gnu.org> | 2020-08-27 14:58:45 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2020-08-27 19:58:16 +0200 |
commit | 0c9d22c13fef9056413338293747c0d32f0cd5a4 (patch) | |
tree | dd379ae5a48943368e3fd218514f8d2a5fb37a24 | |
parent | c849446b82c1c091bd521d8111349867bc45e622 (diff) | |
download | guix-0c9d22c13fef9056413338293747c0d32f0cd5a4.tar.gz |
pull: Avoid "Migrating profile" message on the first run.
* guix/scripts/pull.scm (ensure-default-profile): Do not call 'migrate-generations' when %USER-PROFILE-DIRECTORY (~/.config/guix/current) does not exist. This avoids a confusing "Migrating profile" message when the user runs 'guix pull' for the first time.
-rw-r--r-- | guix/scripts/pull.scm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/guix/scripts/pull.scm b/guix/scripts/pull.scm index 5b4ccf13fe..3b980b8f3f 100644 --- a/guix/scripts/pull.scm +++ b/guix/scripts/pull.scm @@ -507,6 +507,7 @@ true, display what would be built without actually building it." ;; workaround, skip this code when $SUDO_USER is set. See ;; <https://bugs.gnu.org/36785>. (unless (or (getenv "SUDO_USER") + (not (file-exists? %user-profile-directory)) (string=? %profile-directory (dirname (canonicalize-profile %user-profile-directory)))) |