profiles: Report the old and new version number in upgrades.
authorLudovic Courtès <ludo@gnu.org>
Tue, 2 Sep 2014 19:12:59 +0000 (21:12 +0200)
committerLudovic Courtès <ludo@gnu.org>
Tue, 2 Sep 2014 19:12:59 +0000 (21:12 +0200)
commitef8993e2dc90fd5d63d016fc45912ad451bf787c
tree704a6fb13d942006779a36c7fa43cf8f1a7587fc
parentfa747b27fc972240ca3f00a1a4d36e6601d0450e
profiles: Report the old and new version number in upgrades.

* guix/profiles.scm (manifest-lookup): New procedure.
  (manifest-installed?): Use it.
  (manifest-transaction-effects): Return a pair of entries for upgrades.
  (right-arrow): New procedure.
  (manifest-show-transaction)[upgrade-string, →]: New variables.
  Report upgrades using 'upgrade-string'.
* tests/profiles.scm ("manifest-show-transaction"): New test.
  ("manifest-transaction-effects"): Match UPGRADE against a pair.
guix/profiles.scm
tests/profiles.scm