1 |
commit: 70ea9fada67dde2c8d8e61857153d940cb596683 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 5 01:07:39 2013 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 5 01:07:39 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=70ea9fad |
7 |
|
8 |
Don't use splitext for .ebuild/.tbz2 check. |
9 |
|
10 |
--- |
11 |
pym/_emerge/actions.py | 3 +-- |
12 |
1 files changed, 1 insertions(+), 2 deletions(-) |
13 |
|
14 |
diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py |
15 |
index b8cb2cd..e4f93c6 100644 |
16 |
--- a/pym/_emerge/actions.py |
17 |
+++ b/pym/_emerge/actions.py |
18 |
@@ -3597,8 +3597,7 @@ def run_action(settings, trees, mtimedb, myaction, myopts, myfiles, |
19 |
del mytrees, mydb |
20 |
|
21 |
for x in myfiles: |
22 |
- ext = os.path.splitext(x)[1] |
23 |
- if (ext == ".ebuild" or ext == ".tbz2") and \ |
24 |
+ if (x.endswith(".ebuild") or x.endswith(".tbz2")) and \ |
25 |
os.path.exists(os.path.abspath(x)): |
26 |
print(colorize("BAD", "\n*** emerging by path is broken " |
27 |
"and may not always work!!!\n")) |