From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QuYLV-0004QQ-EE for garchives@archives.gentoo.org; Fri, 19 Aug 2011 23:19:25 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BD13C21C14A; Fri, 19 Aug 2011 23:19:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 8802621C14A for ; Fri, 19 Aug 2011 23:19:12 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E1BAF1B4045 for ; Fri, 19 Aug 2011 23:19:11 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 1142780040 for ; Fri, 19 Aug 2011 23:19:11 +0000 (UTC) From: "Andrea Arteaga" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrea Arteaga" Message-ID: Subject: [gentoo-commits] proj/auto-numerical-bench:master commit in: numbench/ X-VCS-Repository: proj/auto-numerical-bench X-VCS-Files: numbench/PortageUtils.py X-VCS-Directories: numbench/ X-VCS-Committer: spiros X-VCS-Committer-Name: Andrea Arteaga X-VCS-Revision: facec2be06cd0eb883afd717238122eeac8bbecb Date: Fri, 19 Aug 2011 23:19:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 98134cad56ad66f838b11957697d517c commit: facec2be06cd0eb883afd717238122eeac8bbecb Author: Andrea Arteaga gmail com> AuthorDate: Fri Aug 19 23:18:54 2011 +0000 Commit: Andrea Arteaga gmail com> CommitDate: Fri Aug 19 23:18:54 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/auto-numerica= l-bench.git;a=3Dcommit;h=3Dfacec2be Solved bug with PortageUtils. --- numbench/PortageUtils.py | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/numbench/PortageUtils.py b/numbench/PortageUtils.py index f06c53d..0aad4b1 100644 --- a/numbench/PortageUtils.py +++ b/numbench/PortageUtils.py @@ -66,7 +66,10 @@ def get_dependencies(package, env=3D{}, split=3DFalse)= : pkg =3D normalize_cpv(package) cmd =3D ['emerge', '--ignore-default-opts', '=3D'+pkg, '-poq'] proc =3D sp.Popen(cmd, stdout=3Dsp.PIPE, stderr=3Dsp.PIPE, env=3Denv= ) - lines =3D proc.communicate()[0].strip().split('\n') + output =3D proc.communicate()[0] + if proc.returncode !=3D 0: + return [] + lines =3D output.strip().split('\n') if not lines[0]: return [] if split: