From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 9FFDA198005 for ; Tue, 5 Mar 2013 01:21:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 46ECDE0525; Tue, 5 Mar 2013 01:21:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E0D73E0525 for ; Tue, 5 Mar 2013 01:21:21 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C39F433DC37 for ; Tue, 5 Mar 2013 01:21:20 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 5E37AE4073 for ; Tue, 5 Mar 2013 01:21:19 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1362446463.60fb27fe4eaec68e32a07f70dda25700a1d124b8.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/_emerge/ X-VCS-Repository: proj/portage X-VCS-Files: pym/_emerge/actions.py X-VCS-Directories: pym/_emerge/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 60fb27fe4eaec68e32a07f70dda25700a1d124b8 X-VCS-Branch: master Date: Tue, 5 Mar 2013 01:21:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 103a7846-ad3b-4a5e-9c8b-72531e0dfacd X-Archives-Hash: d15b6cb70124001fc0d0deddc613695d commit: 60fb27fe4eaec68e32a07f70dda25700a1d124b8 Author: Zac Medico gentoo org> AuthorDate: Tue Mar 5 01:21:03 2013 +0000 Commit: Zac Medico gentoo org> CommitDate: Tue Mar 5 01:21:03 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=60fb27fe Use endswith(tuple). --- pym/_emerge/actions.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index e4f93c6..fae293e 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -3597,7 +3597,7 @@ def run_action(settings, trees, mtimedb, myaction, myopts, myfiles, del mytrees, mydb for x in myfiles: - if (x.endswith(".ebuild") or x.endswith(".tbz2")) and \ + if x.endswith((".ebuild", ".tbz2")) and \ os.path.exists(os.path.abspath(x)): print(colorize("BAD", "\n*** emerging by path is broken " "and may not always work!!!\n"))