diff options
author | Mark H Weaver <mhw@netris.org> | 2013-12-13 15:37:57 -0500 |
---|---|---|
committer | Mark H Weaver <mhw@netris.org> | 2013-12-14 16:25:02 -0500 |
commit | 6447738c013cf205959ca4afd1a97248fb9ccf58 (patch) | |
tree | 60686c04644973a605d8d48e114a0bcffe21d813 /tests | |
parent | 5839958a8fff80cb36dcf537903a1d22f6ace0a7 (diff) | |
download | patches-6447738c013cf205959ca4afd1a97248fb9ccf58.tar patches-6447738c013cf205959ca4afd1a97248fb9ccf58.tar.gz |
guix package: allow multiple arguments after -i, -r, and -u.
* guix/scripts/package.scm (%options): Adapt option processors to accept and
return a second seed value: 'arg-handler', which handles bare arguments (if
not false). The install, remove, and upgrade option processors return an
arg-handler that repeat the same operation. All other option processors
return #f as the arg-handler. Make the arguments to install and remove
optional. The upgrade option processor deletes (upgrade . #f) from the
alist before adding a new entry.
(guix-package): Procedures passed to 'args-fold*' accept the new seed value
'arg-handler'. The 'operand-proc' uses 'arg-handler' (if not false).
* doc/guix.texi (Invoking guix package): Update docs.
* tests/guix-package.sh: Add test.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/guix-package.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/guix-package.sh b/tests/guix-package.sh index 9116f352c9..47a2d06cb3 100644 --- a/tests/guix-package.sh +++ b/tests/guix-package.sh @@ -155,6 +155,9 @@ then guix package -p "$profile" --delete-generations=0 fi +# Make sure multiple arguments to -i works. +guix package --bootstrap -i guile gcc -p "$profile" -n + # Make sure the `:' syntax works. guix package --bootstrap -i "binutils:lib" -p "$profile" -n |