1 |
commit: f23816d7e520bf1f27eb2778d0129e9ad9d576e4 |
2 |
Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Gentoo <DOT> Org> |
3 |
AuthorDate: Tue Jun 28 14:15:28 2011 +0000 |
4 |
Commit: Arfrever Frehtes Taifersar Arahesis <arfrever <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 28 14:15:28 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=f23816d7 |
7 |
|
8 |
read_corresponding_eapi_file(): Strip final \n from EAPI value. |
9 |
|
10 |
--- |
11 |
pym/portage/util/__init__.py | 2 +- |
12 |
1 files changed, 1 insertions(+), 1 deletions(-) |
13 |
|
14 |
diff --git a/pym/portage/util/__init__.py b/pym/portage/util/__init__.py |
15 |
index ece0806..31a808b 100644 |
16 |
--- a/pym/portage/util/__init__.py |
17 |
+++ b/pym/portage/util/__init__.py |
18 |
@@ -390,7 +390,7 @@ def read_corresponding_eapi_file(filename): |
19 |
f = open(eapi_file, "r") |
20 |
lines = f.readlines() |
21 |
if len(lines) == 1: |
22 |
- eapi = lines[0] |
23 |
+ eapi = lines[0].rstrip("\n") |
24 |
else: |
25 |
writemsg(_("--- Invalid 'eapi' file (doesn't contain exactly one line): %s\n") % (eapi_file), |
26 |
noiselevel=-1) |