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