commit: 34ff75367a2941a99339a9ea46bf6faaad270f0f
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 22 03:11:51 2016 +0000
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Fri Jan 22 03:11:51 2016 +0000
URL: https://gitweb.gentoo.org/proj/eselect-php.git/commit/?id=34ff7536
Add a TODO to find_targets() about an error condition.
src/php.eselect.in.in | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/php.eselect.in.in b/src/php.eselect.in.in
index d3428bd..ff3914f 100644
--- a/src/php.eselect.in.in
+++ b/src/php.eselect.in.in
@@ -224,6 +224,9 @@ update_sapi() {
# A space-separated list of target names, for example, "php5.6 php7.0".
#
find_targets() {
+ # TODO: when there aren't any phpX.Y directories, this returns
+ # "php*.*". This doesn't seem to bother our consumers, but it
+ # would probably be more polite to return nothing in that case.
cd "@LIBDIR@" && echo php*.*
}