diff options
author | 2014-11-10 10:59:13 +0100 | |
---|---|---|
committer | 2014-11-10 10:59:13 +0100 | |
commit | 90ac21c824364ac0a18681b88bbeb2d25a7456be (patch) | |
tree | 4db1f82e65e256ce18cdf8d256d6c16eb746797d | |
parent | Portage.pm : Added fix by Martin Väth from Bug 525876 to allow the reading o... (diff) | |
download | ufed-90ac21c824364ac0a18681b88bbeb2d25a7456be.tar.gz ufed-90ac21c824364ac0a18681b88bbeb2d25a7456be.tar.bz2 ufed-90ac21c824364ac0a18681b88bbeb2d25a7456be.zip |
Portage.pm : Enhanced eix detection code and added an optional debug message to print the found location.
-rw-r--r-- | Portage.pm | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 --- |