From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-746159-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 1FA67138825
	for <garchives@archives.gentoo.org>; Mon, 10 Nov 2014 09:59:26 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 09BF6E07F0;
	Mon, 10 Nov 2014 09:59:25 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id B31F9E07F0
	for <gentoo-commits@lists.gentoo.org>; Mon, 10 Nov 2014 09:59:24 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 5AD15340486
	for <gentoo-commits@lists.gentoo.org>; Mon, 10 Nov 2014 09:59:23 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 07D9F9D41
	for <gentoo-commits@lists.gentoo.org>; Mon, 10 Nov 2014 09:59:22 +0000 (UTC)
From: "Sven Eden" <sven.eden@gmx.de>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sven Eden" <sven.eden@gmx.de>
Message-ID: <1415613553.90ac21c824364ac0a18681b88bbeb2d25a7456be.yamakuzure@gentoo>
Subject: [gentoo-commits] proj/ufed:master commit in: /
X-VCS-Repository: proj/ufed
X-VCS-Files: Portage.pm
X-VCS-Directories: /
X-VCS-Committer: yamakuzure
X-VCS-Committer-Name: Sven Eden
X-VCS-Revision: 90ac21c824364ac0a18681b88bbeb2d25a7456be
X-VCS-Branch: master
Date: Mon, 10 Nov 2014 09:59:22 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: dd916729-3aa4-4e83-831a-e74077c3e105
X-Archives-Hash: 74baf8a25e731dc25e2be574c08777ef

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 ---