discovery: Handle edge case in scheme-files when looking at symlinks.
authorChristopher Baines <mail@cbaines.net>
Sun, 7 Jul 2019 11:14:58 +0000 (12:14 +0100)
committerChristopher Baines <mail@cbaines.net>
Mon, 8 Jul 2019 16:04:35 +0000 (17:04 +0100)
commit1d0bde2ee4009a301fee6ceeaf140396bb49a748
tree98c57bdbb1868087847a2810b9d40245fc0aabcb
parent7a2e0c52df8e355d4b1596788d8f71fad3cbefea
discovery: Handle edge case in scheme-files when looking at symlinks.

Previously, this code would cause crashes in Guix (running guix package -s for
example) which could be experienced when Emacs creates temporary files in the
gnu/packages/patches directory when a patch file has been edited, but not
saved.

* guix/discovery.scm (scheme-files): Add else clause to cond used when
handling symlinks.
guix/discovery.scm