guix package: Fix search path lookup when an obsolete version is installed.
authorLudovic Courtès <ludo@gnu.org>
Sun, 31 Aug 2014 20:17:56 +0000 (22:17 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sun, 31 Aug 2014 20:17:56 +0000 (22:17 +0200)
commit4720f524fcab388a5a8bd62a0adf5587e5026b96
tree37f3042c82491ed67e71be911c3bd46d3abcb7ef
parentab3893d713764e64ce9e5f69e991405acf66c1a5
guix package: Fix search path lookup when an obsolete version is installed.

Before that, 'guix package --search-paths' would not work if, say,
'foo-0.2' is installed but the distro provides 'foo-0.3'.

* guix/scripts/package.scm (search-path-environment-variables)[manifest-entry->package]:
  Handle the case where 'find-best-packages-by-name' returns '().
guix/scripts/package.scm