From 0c9d22c13fef9056413338293747c0d32f0cd5a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Thu, 27 Aug 2020 14:58:45 +0200 Subject: [PATCH] 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 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 ;; . (unless (or (getenv "SUDO_USER") + (not (file-exists? %user-profile-directory)) (string=? %profile-directory (dirname (canonicalize-profile %user-profile-directory))))