guix package: Allow removal of a specific package output.
authorLudovic Courtès <ludo@gnu.org>
Fri, 1 Nov 2013 22:11:17 +0000 (23:11 +0100)
committerLudovic Courtès <ludo@gnu.org>
Fri, 1 Nov 2013 22:21:01 +0000 (23:21 +0100)
commita20787706c246a9451b69db075a30ee91d28538b
tree5fb67cad6b5f65d4aa4be73966d5747c276f4ba2
parent537630c5a743251024b6bbd8b4eecf8811439cc6
guix package: Allow removal of a specific package output.

Fixes <http://bugs.gnu.org/15756>.

* guix/profiles.scm (<manifest-pattern>): New record type.
  (remove-manifest-entry): Remove.
  (entry-predicate, manifest-matching-entries): New procedures.
  (manifest-remove): Accept a list of <manifest-pattern>.
  (manifest-installed?): Replace 'name' parameter by 'pattern', a
  <manifest-pattern>.
* guix/scripts/package.scm (options->removable): Return a list of
  <manifest-pattern>.
  (guix-package)[process-action]: Use 'manifest-matching-entries' to
  compute the list of packages to remove.
* tests/profiles.scm: New file.
* Makefile.am (SCM_TESTS): Add it.
.dir-locals.el
Makefile.am
guix/profiles.scm
guix/scripts/package.scm
tests/profiles.scm [new file with mode: 0644]