Ludovic Courtès d46c4423f4
discovery: 'scheme-files' returns '() for a non-accessible directory.
Fixes a regression introduced in
d27cc3bfaafe6b5b0831e88afb1c46311d382a0b.

Reported by Ricardo Wurmus <rekado@elephly.net>.

* guix/discovery.scm (scheme-files): Catch 'scandir*' system errors.
Return '() and optionally raise a warning upon 'system-error'.
* tests/discovery.scm ("scheme-modules, non-existent directory"): New
test.
2017-06-18 00:14:07 +02:00
..
2017-06-15 17:03:19 +02:00
2017-06-15 17:03:19 +02:00
2017-01-28 18:55:20 +01:00
2017-03-18 00:38:41 +01:00
2015-01-26 21:58:12 +01:00
2017-06-09 09:48:26 +02:00
2017-05-03 16:16:17 +02:00
2017-05-11 16:17:49 +02:00
2017-05-03 16:16:17 +02:00
2017-05-03 16:16:17 +02:00
2017-04-17 23:31:28 +02:00
2015-01-11 23:50:01 +01:00
2017-06-16 17:08:22 +02:00
2017-06-16 17:08:22 +02:00
2017-05-03 16:16:17 +02:00
2017-05-28 23:13:39 +02:00