size: Fix corner case with multiple items on the command line.
authorLudovic Courtès <ludo@gnu.org>
Fri, 29 Jul 2016 17:48:23 +0000 (19:48 +0200)
committerLudovic Courtès <ludo@gnu.org>
Fri, 29 Jul 2016 20:32:04 +0000 (22:32 +0200)
commitda2d893e324fcdd4ab9e3ccdd62d7aab520da3b5
treea12247fb19480a74cb1429cf5bff992c77e3b072
parent31c995f8afbb3dc2913c9bfb17ea8de68cf804cb
size: Fix corner case with multiple items on the command line.

Fixes 'guix size foo bar' when 'foo' is in the local store and 'bar'
isn't, which could lead to an incomplete requisite list.

* guix/scripts/size.scm (requisites*): Partition ITEMS according to
'valid-path?'.  Use 'substitutable-requisites' only on invalid items.
guix/scripts/size.scm