Ludovic Courtès 69d9a02094
locate: Accept ‘--clear’ without additional arguments.
Fixes a bug whereby ‘guix locate --clear’ would end with the “no files
to search for” error.

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

* guix/scripts/locate.scm (guix-locate): Do not emit “no files to search
for” error when 'clear? is set in OPTS.
* tests/guix-locate.sh: Test it.

Reported-by: Maciej Kalandyk <m.kalandyk@outlook.com>
Change-Id: Ib8fa125c18481d7f5408bd89df9503713527641d
2023-11-15 18:29:37 +01:00
..
2023-08-12 23:02:31 +02:00
2023-03-13 15:08:33 +01:00
2019-12-15 00:34:05 +01:00
2023-09-26 17:36:58 +02:00
2023-03-13 15:08:33 +01:00
2023-08-25 14:24:43 +02:00
2023-03-13 15:08:33 +01:00
2023-11-05 17:51:38 +00:00
2022-12-02 23:20:54 +01:00
2023-03-13 15:08:33 +01:00
2023-03-13 15:08:33 +01:00
2023-03-13 15:08:33 +01:00
2023-09-26 17:36:58 +02:00
2023-03-13 15:08:33 +01:00
2023-10-26 15:21:35 +02:00