cdrom.eclass: Make CD_ROOT less of a special case, fixes #195868
authorJames Le Cuirot <chewi@gentoo.org>
Sun, 16 Apr 2017 11:43:08 +0000 (12:43 +0100)
committerJames Le Cuirot <chewi@gentoo.org>
Thu, 27 Apr 2017 21:41:24 +0000 (22:41 +0100)
commit8220a6a34dabb940f0b1998eabd27e763d66bb13
treef17a9c34320d33bca6dfecaa5b67a023544ced3c
parent0f72535c23a2d0286001a849a39fa8543e1588f5
cdrom.eclass: Make CD_ROOT less of a special case, fixes #195868

CD_ROOT was intended to be a power user feature so the eclass didn't
try very hard to check the validity of the given location. This
difference in behaviour ultimately made the eclass larger and more
confusing.

It now uses the same matching loop as the regular case, making it
simpler and more consistent. The only differences are that it doesn't
show information or prompts about inserting discs and it dies
immediately if a match cannot be found.
eclass/cdrom.eclass