aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2019-03-27 11:52:47 +0100
committerLudovic Courtès <ludo@gnu.org>2019-03-27 11:54:06 +0100
commit9e5f2060ad9204def8d1eb249f053f1fd0bbf212 (patch)
tree282005d496395287eb7adf38087d5472c670126c
parent45c0d1d790f01ebc020fc4b2787a6abcdaa3f383 (diff)
downloadgnu-guix-9e5f2060ad9204def8d1eb249f053f1fd0bbf212.tar
gnu-guix-9e5f2060ad9204def8d1eb249f053f1fd0bbf212.tar.gz
scripts: Skip 'guix pull' suggestion when running code from a checkout.
* guix/scripts.scm (warn-about-old-distro): Do not warn when GUIX_UNINSTALLED is set.
-rw-r--r--guix/scripts.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/scripts.scm b/guix/scripts.scm
index 75d801a466..e4b11d295d 100644
--- a/guix/scripts.scm
+++ b/guix/scripts.scm
@@ -173,7 +173,8 @@ Show what and how will/would be built."
"Your Guix installation is ~a days old.\n"
(seconds->days age))
(seconds->days age)))
- (when (or (not age) (>= age old))
+ (when (and (or (not age) (>= age old))
+ (not (getenv "GUIX_UNINSTALLED")))
(warning (G_ "Consider running 'guix pull' followed by
'~a' to get up-to-date packages and security updates.\n")
suggested-command)