guix-play/guix/scripts
Ludovic Courtès d0fed2f4df
locate: Do not return the system database when it is too old.
Fixes a bug whereby ‘guix locate’ would pick the system database, then
decide it’s too old, try to update it, and fail because it’s not
writable by unprivileged users.

Fixes <https://issues.guix.gnu.org/66612>.

* guix/scripts/locate.scm (file-age): New procedure.
(suitable-database): Add ‘age-update-threshold’ parameter and honor it.
(guix-locate): Remove ‘file-age’.  Pass ‘age-update-threshold’ to the
‘database’ option.

Reported-by: Matt Wette <matt.wette@gmail.com>
2023-10-18 18:21:04 +02:00
..
container container: Correctly report exit status. 2023-01-30 22:24:27 +01:00
git Add 'guix git authenticate'. 2020-07-11 12:33:01 +02:00
home ui: 'display-hint' quotes extra arguments for Texinfo. 2023-02-27 23:40:43 +01:00
import scripts: import: elpa: Return consistent error code. 2023-05-17 22:22:22 +02:00
system reconfigure: Use let* from srfi-71. 2023-08-12 23:07:40 +02:00
archive.scm scripts: archive: Handle EPIPE errors when displaying help. 2023-10-17 14:51:53 +02:00
authenticate.scm authenticate: Encode strings as ISO-8859-1. 2020-09-15 14:40:20 +02:00
build.scm scripts: build: Handle EPIPE errors when displaying help. 2023-10-17 14:51:54 +02:00
challenge.scm scripts: challenge: Handle EPIPE errors when displaying help. 2023-10-17 14:51:54 +02:00
container.scm scripts: container: Handle EPIPE errors when displaying help. 2023-10-17 14:51:54 +02:00
copy.scm scripts: copy: Handle EPIPE errors when displaying help. 2023-10-17 14:51:55 +02:00
deploy.scm scripts: deploy: Handle EPIPE errors when displaying help. 2023-10-17 14:51:55 +02:00
describe.scm scripts: describe: Handle EPIPE errors when displaying help. 2023-10-17 14:51:55 +02:00
discover.scm scripts: discover: Handle EPIPE errors when displaying help. 2023-10-17 14:51:56 +02:00
download.scm scripts: download: Handle EPIPE errors when displaying help. 2023-10-17 14:51:56 +02:00
edit.scm scripts: edit: Handle EPIPE errors when displaying help. 2023-10-17 14:51:56 +02:00
environment.scm environment: Fix unbound-variable bug with '--symlink'. 2023-06-02 16:57:17 +02:00
gc.scm scripts: gc: Handle EPIPE errors when displaying help. 2023-10-17 14:51:57 +02:00
git.scm scripts: git: Handle EPIPE errors when displaying help. 2023-10-17 14:51:57 +02:00
graph.scm scripts: graph: Handle EPIPE errors when displaying help. 2023-10-17 14:51:57 +02:00
hash.scm scripts: hash: Handle EPIPE errors when displaying help. 2023-10-17 14:51:58 +02:00
home.scm scripts: home: Handle EPIPE errors when displaying help. 2023-10-17 14:51:58 +02:00
import.scm scripts: import: Handle EPIPE errors when displaying help. 2023-10-17 14:51:58 +02:00
install.scm scripts: install: Handle EPIPE errors when displaying help. 2023-10-17 14:51:59 +02:00
lint.scm scripts: lint: Handle EPIPE errors when displaying help. 2023-10-17 14:51:59 +02:00
locate.scm locate: Do not return the system database when it is too old. 2023-10-18 18:21:04 +02:00
offload.scm scripts: offload: Handle EPIPE errors when displaying help. 2023-10-17 14:52:00 +02:00
pack.scm scripts: pack: Handle EPIPE errors when displaying help. 2023-10-17 14:52:00 +02:00
package.scm scripts: package: Handle EPIPE errors when displaying help. 2023-10-17 14:52:01 +02:00
perform-download.scm perform-download: Set PATH before invoking ‘git’. 2023-10-05 23:14:53 +02:00
processes.scm scripts: processes: Handle EPIPE errors when displaying help. 2023-10-17 14:52:01 +02:00
publish.scm scripts: publish: Handle EPIPE errors when displaying help. 2023-10-17 14:52:01 +02:00
pull.scm scripts: pull: Handle EPIPE errors when displaying help. 2023-10-17 14:52:02 +02:00
refresh.scm scripts: refresh: Handle EPIPE errors when displaying help. 2023-10-17 14:52:02 +02:00
remove.scm scripts: remove: Handle EPIPE errors when displaying help. 2023-10-17 14:52:02 +02:00
repl.scm scripts: repl: Handle EPIPE errors when displaying help. 2023-10-17 14:52:03 +02:00
search.scm scripts: search: Handle EPIPE errors when displaying help. 2023-10-17 14:52:03 +02:00
shell.scm scripts: shell: Handle EPIPE errors when displaying help. 2023-10-17 14:52:03 +02:00
show.scm scripts: show: Handle EPIPE errors when displaying help. 2023-10-17 14:52:04 +02:00
size.scm scripts: size: Handle EPIPE errors when displaying help. 2023-10-17 14:52:04 +02:00
style.scm scripts: style: Handle EPIPE errors when displaying help. 2023-10-17 14:52:04 +02:00
substitute.scm scripts: substitute: Handle EPIPE errors when displaying help. 2023-10-17 14:52:05 +02:00
system.scm scripts: system: Handle EPIPE errors when displaying help. 2023-10-17 14:52:05 +02:00
time-machine.scm scripts: time-machine: Handle EPIPE errors when displaying help. 2023-10-17 14:52:05 +02:00
upgrade.scm scripts: upgrade: Handle EPIPE errors when displaying help. 2023-10-17 14:52:06 +02:00
weather.scm scripts: weather: Handle EPIPE errors when displaying help. 2023-10-17 14:52:06 +02:00