guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/03: pull: Avoid "Migrating profile" message on the first run.


From: guix-commits
Subject: 01/03: pull: Avoid "Migrating profile" message on the first run.
Date: Thu, 27 Aug 2020 14:11:37 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 0c9d22c13fef9056413338293747c0d32f0cd5a4
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Thu Aug 27 14:58:45 2020 +0200

    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.
---
 guix/scripts/pull.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/guix/scripts/pull.scm b/guix/scripts/pull.scm
index 5b4ccf1..3b980b8 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))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]