~ruther/guix-local

ref: 7b158c4ee2d4b5cf6a2cd9bf0246465c3c8a06ca guix-local/guix/scripts/package.scm -rw-r--r-- 34.0 KiB
8c986ab1 — Ludovic Courtès 10 years ago
Merge branch 'master' into core-updates
db5a9444 — Ludovic Courtès 10 years ago
guix package: Allow multiple '--search' flags.

* guix/scripts/package.scm (find-packages-by-description): Change 'rx'
parameter to 'regexps'.
[matches-all?, matches-one?]: New procedures.
Use them.
(process-query): Collect regexps from all 'search' queries, and pass
them to 'find-packages-by-description'.
* tests/guix-package.sh: Add tests.
* doc/guix.texi (Invoking guix package): Document it.
53334dd6 — Ludovic Courtès 10 years ago
Merge branch 'master' into core-updates
38fa30eb — Leo Famulari 10 years ago
guix package: Fix typo in comment.

* guix/scripts/package.scm: Fix typo.
e82e55e5 — Ludovic Courtès 10 years ago
Merge branch 'master' into core-updates
27b91d78 — Ludovic Courtès 10 years ago
guix package: Refactor 'options->installable'.

* guix/scripts/package.scm (options->upgrade-predicate)
(store-item->manifest-entry): New procedures.
* guix/scripts/package.scm (options->installable): Use them.  Remove the
'packages-to-upgrade' and 'packages-to-install' variables by getting rid
of a level of indirection.
6e370175 — Ludovic Courtès 10 years ago
guix package: Move 'process-actions' out of sight.

* guix/scripts/package.scm (process-actions): New procedure, moved
from...
(guix-package): ... here.  Adjust accordingly.
59055895 — Ludovic Courtès 10 years ago
guix package: Formalize the list of actions.

* guix/scripts/package.scm (roll-back-action, switch-generation-action)
(delete-generations-action, manifest-action): New procedures.
(%actions): New variable.
* guix/scripts/package.scm (guix-package)[process-action]: Rewrite to
traverse %ACTIONS.
d1ac5c07 — Ludovic Courtès 10 years ago
guix package: Move 'build-and-use-profile' out of sight.

* guix/scripts/package.scm (build-and-use-profile): New procedure.
Adapted and moved from...
(guix-package)[process-actions]: ... here.  Adjust call sites.
2cc10077 — Ludovic Courtès 10 years ago
guix package: Move a couple of procedures out of sight.

* guix/scripts/package.scm (ensure-default-profile, process-query): New
procedures, moved from...
(guix-package): ... here.
0993f942 — Ludovic Courtès 10 years ago
guix package: Remove unnecessary use of (%store).

* guix/scripts/package.scm (delete-matching-generations): Use STORE
instead of (%store).
cc3de1da — Ludovic Courtès 10 years ago
guix package: Reduce startup time by ~50%.

As measured with:

  time sh -c 'for i in `seq 1 10` ; do guix package --search-paths ; done'

On my machine, when running:

  strace -o ,,s guix package --search-paths

the number returned by:

  grep -E '^(open|l?stat).*\.go' ,,s | wc -l

drops from 1610 to 837.

* guix/scripts/package.scm: Remove two unnecessary #:use-module forms.
Autoload (gnu packages ...) modules.
fc2d2339 — Ludovic Courtès 10 years ago
guix package: '--search-paths' can report combined search paths.

Partly fixes <http://bugs.gnu.org/20255>.

* guix/scripts/package.scm (search-path-environment-variables): Change
  'profile' to 'profiles'; expect it to be a list.
  (display-search-paths): Likewise.
  (%default-options): Remove 'profile' entry.
  (%options) <--profile>: Keep previous values associated with 'profile'
  in RESULT.
  (guix-package)[process-actions, process-query]: Handle the possible
  lack of 'profile' pair in OPTS.
eed588d9 — 宋文武 10 years ago
Merge branch 'master' into dbus-update
fd688c82 — Ludovic Courtès 10 years ago
ui: Add 'make-regexp*'.

Fixes <http://bugs.gnu.org/21773>.
Reported by Jan Synáček <jan.synacek@gmail.com>.

* guix/ui.scm (make-regexp*): New procedure.
* guix/scripts/package.scm (options->installable, guix-package): Use it
  when processing user-provided regexps.
06d45f45 — Ludovic Courtès 10 years ago
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.
ad18c7e6 — Ludovic Courtès 10 years ago
ui: Add procedures to display a profile generation.

* guix/scripts/package.scm (guix-package)[process-query](list-generations):
  Move part of the body to 'delete-generation' and
  'display-profile-content'.
* guix/ui.scm (display-generation, display-profile-content): New
  procedures.
d50cb56d — Ludovic Courtès 10 years ago
utils: Add 'readlink*'.

* guix/scripts/package.scm (readlink*): Move to...
* guix/utils.scm (readlink*): ... here.  New procedure.
e49de93a — Ludovic Courtès 10 years ago
ui: Add 'matching-generations'.

* guix/scripts/package.scm (matching-generations): Move to...
* guix/ui.scm (matching-generations): ... here.
bd90127a — Mark H Weaver 10 years ago
Merge branch 'master' into core-updates
Next