scripts: 'warn-about-old-distro' looks at the age of the running Guix.
authorLudovic Courtès <ludo@gnu.org>
Sun, 17 Mar 2019 16:02:15 +0000 (17:02 +0100)
committerLudovic Courtès <ludo@gnu.org>
Sun, 17 Mar 2019 21:55:01 +0000 (22:55 +0100)
commit55da450a1fc9969d9e791d7d94da90df3aa284db
tree0a0b8086b56ac2bbe3ad1b05b572cc86556b1d7c
parentcd2e4b2a8dbded85f7183d86be0747707e55d49e
scripts: 'warn-about-old-distro' looks at the age of the running Guix.

This fixes a discrepancy that could be seen when running:

  sudo guix system …

where 'guix' would warn about the age of root's Guix, even though the
running Guix is the user's, not root's.

* guix/scripts.scm (warn-about-old-distro)[false-if-not-found]: Remove.
Obtain the profile date by calling 'current-profile-date' instead of
stat'ing "current-guix".
guix/scripts.scm