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 DE933198005 for ; Tue, 5 Mar 2013 01:07:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C6584E0525; Tue, 5 Mar 2013 01:07:53 +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 58601E0525 for ; Tue, 5 Mar 2013 01:07:53 +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 2E40F33DD90 for ; Tue, 5 Mar 2013 01:07:52 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id BB685E4073 for ; Tue, 5 Mar 2013 01:07:50 +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: <1362445659.70ea9fada67dde2c8d8e61857153d940cb596683.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: 70ea9fada67dde2c8d8e61857153d940cb596683 X-VCS-Branch: master Date: Tue, 5 Mar 2013 01:07:50 +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: 2b619088-c5a4-46e9-8ee5-098c9886081d X-Archives-Hash: cb35d9e74ef96549609bfd62eb5421e5 commit: 70ea9fada67dde2c8d8e61857153d940cb596683 Author: Zac Medico gentoo org> AuthorDate: Tue Mar 5 01:07:39 2013 +0000 Commit: Zac Medico gentoo org> CommitDate: Tue Mar 5 01:07:39 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=70ea9fad Don't use splitext for .ebuild/.tbz2 check. --- pym/_emerge/actions.py | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index b8cb2cd..e4f93c6 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -3597,8 +3597,7 @@ def run_action(settings, trees, mtimedb, myaction, myopts, myfiles, del mytrees, mydb for x in myfiles: - ext = os.path.splitext(x)[1] - if (ext == ".ebuild" or ext == ".tbz2") and \ + if (x.endswith(".ebuild") or x.endswith(".tbz2")) and \ os.path.exists(os.path.abspath(x)): print(colorize("BAD", "\n*** emerging by path is broken " "and may not always work!!!\n"))