diff options
author | Ludovic Courtès <ludo@gnu.org> | 2013-01-17 22:20:42 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2013-01-17 22:42:39 +0100 |
commit | 24e262f086980a13d9d0a27615ed7eaec4aacbff (patch) | |
tree | 4c519de6a66020766572e3d419cda80290c81634 /tests/union.scm | |
parent | 8ca6cc4b451cab4b686d28f8aedef2c39fab6a17 (diff) | |
download | patches-24e262f086980a13d9d0a27615ed7eaec4aacbff.tar patches-24e262f086980a13d9d0a27615ed7eaec4aacbff.tar.gz |
guix-package: Add `--roll-back'.
Based on a patch by Nikita Karetnikov <nikita@karetnikov.org>.
* guix-package.in (profile-regexp): New procedure.
(latest-profile-number): Remove `%profile-rx', and use
`profile-regexp' instead.
(profile-number, roll-back): New procedure.
(show-help): Add `--roll-back'.
(%options): Likewise.
(guix-package)[process-actions]: First check whether `roll-back?' is
among OPTS, and call `roll-back' if it is, followed by a recursive
call to `process-actions'. Emit the "nothing to be done" message only
when INSTALL or REMOVE is non-empty.
* tests/guix-package.sh (readlink_base): New function.
Add tests for `--roll-back'.
* doc/guix.texi (Invoking guix-package): Document `--roll-back'.
Diffstat (limited to 'tests/union.scm')
0 files changed, 0 insertions, 0 deletions