pull: Display 'hash guix' hint when the new and old 'guix' are different.
commita0dc97a517cbc4c82640e30cacb2a564d128bbe9
authorLudovic Courtès <ludo@gnu.org>
Thu, 9 May 2019 15:31:44 +0000 (9 17:31 +0200)
committerLudovic Courtès <ludo@gnu.org>
Thu, 9 May 2019 15:42:31 +0000 (9 17:42 +0200)
treecf69aedee93bea4660b029ad8a87b55e25ab1890
parent8deb65c37850bfca36429f3fe5239bd9236f969c
pull: Display 'hash guix' hint when the new and old 'guix' are different.

Fixes <https://bugs.gnu.org/35601>.
Reported by Diego Nicola Barbato <dnbarbato@posteo.de>.

Previously we were calling (which "guix") after the new profile had been
built and symlinked, so in most cases the hint would not be triggered,
even though it should have been triggered.

* guix/scripts/pull.scm (build-and-install)[guix-command]: New variable.
Compare PROFILE/bin/guix against GUIX-COMMAND.
guix/scripts/pull.scm