~ruther/guix-local

ref: b58c1b2d9b8f6d2aaee92a55804d7aa75f5f3499 guix-local/guix/scripts d---------
f10dcbf1 — Ludovic Courtès 9 years ago
substitute: Use ~/.cache when invoked by an unprivileged user.

This is a followup to ea0c6e0507a6997f12a4f29d0445b51cf53bd81e.

* guix/scripts/substitute.scm (%narinfo-cache-directory): Use
'cache-directory' when (getuid) returns non-zero.
(cache-narinfo!): Remove 'catch'.
e4c7a5f7 — Ludovic Courtès 9 years ago
publish: Add '--ttl'.

* guix/scripts/publish.scm (show-help, %options): Add --ttl.
(render-narinfo): Add #:ttl and honor it.
(make-request-handler): Add #:narinfo-ttl and honor it.
(run-publish-server): Likewise.
(guix-publish): Honor --ttl, pass it to 'run-publish-server'.
93961f02 — Ludovic Courtès 9 years ago
publish: Encore URIs that appear in narinfos.

Fixes <http://bugs.gnu.org/21888>.
Reported by iyzsong@member.fsf.org (宋文武).

* guix/scripts/publish.scm (narinfo-string): Use
'encode-and-join-uri-path' instead of 'string-append' to compute URL.
* tests/publish.scm ("/*.narinfo with properly encoded '+' sign"):
("/nar/ with properly encoded '+' sign"): New tests.
0a40626f — Ludovic Courtès 9 years ago
offload: Use (guix build syscalls).

This is a followup to 4e0ea3eb288c2143b44bf324c64047762c72d3b3.

* guix/scripts/offload.scm: Use (guix build syscalls).
494dc2fc — Ludovic Courtès 9 years ago
guix package: Inherit the transformed version number.

Previously, 'guix package -i emacs --with-source=./emacs-42.tar.gz'
would fail to use "42" as the version number in the manifest entry.

Reported by piyo on #guix.

* guix/scripts/package.scm (process-actions)[transform-entry]: Inherit
the version number from the result of TRANSFORM when it's a package.
* tests/guix-package.sh: Test it.
ac0a7b0f — Ludovic Courtès 9 years ago
substitute: Internationalize the "Downloading" message.

* guix/scripts/substitute.scm (process-substitution): I18n "Downloading"
message.
92ed837a — Ludovic Courtès 9 years ago
size: Pass 'requisites' a list of items.

* guix/scripts/size.scm (substitutable-requisites): Change 'item' to
'items' and adjust.
(requisites*): Likewise.
(mappend-map): Remove.
(store-profile): Adjust accordingly.
f6fee16e — Ludovic Courtès 9 years ago
store: 'requisites' now takes a list of store items.

* guix/store.scm (fold-path): Change 'path' to 'paths' and adjust body
accordingly.
(requisites): Likewise.
* guix/scripts/environment.scm (inputs->requisites): Adjust
user accordingly.
* guix/scripts/size.scm (requisites*): Likewise.
* guix/scripts/gc.scm (guix-gc): Likewise.
* tests/store.scm ("requisites"): Likewise.
db761534 — Ludovic Courtès 9 years ago
size: Accept several arguments.

* guix/scripts/size.scm (display-profile): Display WHOLE at then end.
(guix-size): Accept several FILES.
* doc/guix.texi (Invoking guix size): Add example with several items.
a371aa22 — Ludovic Courtès 9 years ago
size: 'store-profile' takes a list of store items.

* guix/scripts/size.scm (mappend-map): New procedure.
(store-profile): Change 'item' to 'items' and adjust code accordingly.
(guix-size): Update caller.
* tests/size.scm ("store-profile"): Likewise.
9a6beb3b — Ludovic Courtès 9 years ago
refresh: Make 'list-dependents' a monadic procedure.

* guix/scripts/refresh.scm (list-dependents): Remove use of 'with-store'
and 'run-with-store'.
(guix-refresh): Wrap body in with-store/run-with-store.
30d4bc04 — Ludovic Courtès 9 years ago
substitute: Gracefully handle invalid store file names.

Before, something like:

  echo have /gnu/foo | ./test-env guix substitute --query

would lead to an ugly backtrace.

* guix/scripts/substitute.scm (narinfo-cache-file): Call 'leave' when
'store-hash-part' returns #f.
a773c314 — Ludovic Courtès 9 years ago
graph: Allow store file names for 'derivation' and 'references' graphs.

* guix/scripts/graph.scm (%derivation-node-type)[convert]: Add
'derivation-path?' and catch-all clauses.
(%reference-node-type)[convert]: Add 'store-path?' and catch-all
clauses.
(assert-package, nodes-from-package): New procedures.
(%package-node-type, %bag-node-type,%bag-with-origins-node-type)
(%bag-emerged-node-type): Add 'convert' field
(guix-graph): Rename 'packages' to 'items' and
allow 'store-path?' arguments.
* guix/graph.scm (<node-type>)[convert]: Adjust comment.
* doc/guix.texi (Invoking guix graph): Document it.
3cabdead — Ludovic Courtès 9 years ago
graph: Use absolute file name canonicalization.

* guix/scripts/graph.scm (guix-graph): Wrap in 'with-fluids'.
99effc8f — Ludovic Courtès 9 years ago
lint: Honor 'cpe-name' and 'cpe-version' package properties.

* guix/scripts/lint.scm (package-name->cpe-name): Remove.
(package-vulnerabilities): Honor 'cpe-name' and 'cpe-version'
properties.
* gnu/packages/grub.scm (grub)[properties]: New field.
* gnu/packages/gnuzilla.scm (icecat)[properties]: Add 'cpe-name' and
'cpe-version'.
* doc/guix.texi (Invoking guix lint): Mention 'cpe-name'.
14959038 — Ludovic Courtès 9 years ago
import: Gracefully report import failures.

Previously, something like 'guix import gnu which' would spit out a
backtrace if, say, the 'which' tarball could not be authenticated.

* guix/upstream.scm (download-tarball): Mention failure modes in
docstring.
* guix/import/gnu.scm (gnu-package->sexp): Return #f when
'download-tarball' returns #f.
* guix/scripts/import.scm (guix-import): Call 'leave' when IMPORTER does
not return a (package ...) sexp.
787afdd0 — Ludovic Courtès 9 years ago
import: Exit with non-zero when an unknown importer is asked.

* guix/scripts/import.scm (guix-import): Use 'leave' instead of 'format'
when IMPORTER is unknown.
c22a4757 — Ludovic Courtès 10 years ago
guix build: Catch 'getaddrinfo-error' for '--log-file'.

* guix/scripts/build.scm (log-url)[valid-url?]: Catch
'getaddrinfo-error'.
6e94a574 — Ludovic Courtès 10 years ago
guix build: Do not show what to build when '-d' is used.

* guix/scripts/build.scm (guix-build): Don't call 'show-what-to-build'
when OPTS contains 'derivations-only?'.
6655a743 — 宋文武 10 years ago
Merge branch 'master' into gnome-updates
Next