profiles: Add generation manipulation procedures.
commit06d45f4566469364b4c1fe6d3c71ecf58f5d4838
authorLudovic Courtès <ludo@gnu.org>
Mon, 26 Oct 2015 22:01:06 +0000 (26 23:01 +0100)
committerLudovic Courtès <ludo@gnu.org>
Mon, 26 Oct 2015 23:01:20 +0000 (27 00:01 +0100)
tree20704b607a28fb48ee922485e400b353184c3c89
parent3bb168b0997d2ba2ef15e8eef2890582c8a6df9c
profiles: Add generation manipulation procedures.

* guix/scripts/package.scm (delete-generations): Use
  'delete-generation*' instead of 'delete-generation'.
  (guix-package)[process-actions]: Use 'roll-back*' instead of
  'roll-back' and 'switch-to-generation*' instead of
  'switch-to-generation'.
  (link-to-empty-profile, switch-to-generation,
  switch-to-previous-generation, roll-back, delete-generation): Move
  to...
* guix/profiles.scm: ... here.  Adjust to not print messages and to
  return values that can be used by user interfaces.
* guix/ui.scm (display-generation-change, roll-back*,
  switch-to-generation*, delete-generation*): New procedures.
guix/profiles.scm
guix/scripts/package.scm
guix/ui.scm