commit: 90ac21c824364ac0a18681b88bbeb2d25a7456be
Author: Sven Eden <seden <AT> havi <DOT> de>
AuthorDate: Mon Nov 10 09:59:13 2014 +0000
Commit: Sven Eden <sven.eden <AT> gmx <DOT> de>
CommitDate: Mon Nov 10 09:59:13 2014 +0000
URL:
http://sources.gentoo.org/gitweb/?p=proj/ufed.git;a=commit;h=90ac21c8
Portage.pm : Enhanced eix detection code and added an optional debug message to
print the found location.
---
Portage.pm | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/Portage.pm b/Portage.pm
index 5aacd42..534de52 100644
--- a/Portage.pm
+++ b/Portage.pm
@@ -153,8 +153,11 @@ INIT {
$_eix_cmd = qx{which eix 2>/dev/null};
defined($_eix_cmd)
and chomp $_eix_cmd
+ and length($_eix_cmd)
and -x $_eix_cmd
- and $_has_eix = 1;
+ and $_has_eix = 1
+ and debugMsg("Found eix in \"$_eix_cmd\"")
+ or $_has_eix = 0;
# Initialize basics
_determine_eprefix_portdir;
@@ -211,9 +214,9 @@ INIT {
sub debugMsg
{
my ($msg) = @_;
- DEBUG or return;
+ DEBUG or return 1;
print STDERR "$msg\n";
- return;
+ return 1;
}
# --- private methods implementations ---