From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: guix installation age warning sometimes wrong Date: Tue, 25 Jul 2017 10:16:29 +0200 Message-ID: <8760ehnd7m.fsf@gnu.org> References: <150091597988.31085.1323099914257477602@x220> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50019) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dZv1A-0007va-N0 for guix-devel@gnu.org; Tue, 25 Jul 2017 04:16:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dZv16-0002V1-Je for guix-devel@gnu.org; Tue, 25 Jul 2017 04:16:36 -0400 In-Reply-To: (Vincent Legoll's message of "Mon, 24 Jul 2017 19:55:31 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Vincent Legoll Cc: guix-devel Hi, Vincent Legoll skribis: > On Mon, Jul 24, 2017 at 7:06 PM, Troy Sankey wrote: >> guix package: warning: Your Guix installation is 125 days old. >> guix package: warning: Consider running 'guix pull' followed by >> 'guix package -u' to get up-to-date packages and security updates. >> >> ...presumably because it's reading the mtime/ctime on the symlink. Is >> there a more precise way to asses the age of the guix installation >> symlink? > > This has been discussed previously, for example in this thread: > https://lists.gnu.org/archive/html/guix-devel/2017-05/msg00123.html Yeah currently this is based on the mtime. Eventually I think we=E2=80=99ll rather check the Git commit that this corresponds to, compared to the latest one available (though that=E2=80=99s tricky since it involves making a network connection.) So that=E2=80=99s what we have for now. As long as you don=E2=80=99t fiddl= e manually with the =E2=80=98latest=E2=80=99 symlink, everything should be fine; other= wise be prepared for things like this. Ludo=E2=80=99.