cdrom.eclass: Detect case-insensitively and handle special characters
authorJames Le Cuirot <chewi@gentoo.org>
Sun, 16 Apr 2017 09:36:07 +0000 (10:36 +0100)
committerJames Le Cuirot <chewi@gentoo.org>
Thu, 27 Apr 2017 21:41:21 +0000 (22:41 +0100)
commitfde70c442fd394bfd912d266b8442d86b76dea1a
tree9ce06d8f0b474cec328899d15b1c2c98222f2f3e
parent6ccdfd71376d87a8c0e21ec05620181c67f5de5d
cdrom.eclass: Detect case-insensitively and handle special characters

This eclass previously used "find -iname" but it only checked the file
case-insensitively and not the directories. There is "find -ipath" but
this does not intelligently skip non-matching paths, making it
slow. Globbing is used here instead.

The : character has always been used to delimit paths given to
cdrom_get_cds, which makes sense because : generally isn't allowed on
CDs, while whitespace is. Despite that, whitespace was not being
handled properly and neither were wildcard characters. Now all special
characters are automatically escaped.
eclass/cdrom.eclass