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.
This commit is contained in:
Ludovic Courtès 2019-03-27 11:52:47 +01:00
parent 45c0d1d790
commit 9e5f2060ad
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 2 additions and 1 deletions

View File

@ -173,7 +173,8 @@ Show what and how will/would be built."
"Your Guix installation is ~a days old.\n" "Your Guix installation is ~a days old.\n"
(seconds->days age)) (seconds->days age))
(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 (warning (G_ "Consider running 'guix pull' followed by
'~a' to get up-to-date packages and security updates.\n") '~a' to get up-to-date packages and security updates.\n")
suggested-command) suggested-command)