commit: 84c45d5e3e8da1669b196d6a567491e34f9a2ec6 Author: Brian Dolbec <dolsen <AT> gentoo <DOT> org> AuthorDate: Tue Dec 2 19:02:18 2014 +0000 Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> CommitDate: Tue Dec 2 19:02:18 2014 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=84c45d5e
portage/util/writeable_check.py: Fix IndexError: bug 527486 X-Gentoo-Bug: 527486 X-Gentoo-Bug-url: https://bugs.gentoo.org/show_bug.cgi?id=527486 --- pym/portage/util/writeable_check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/portage/util/writeable_check.py b/pym/portage/util/writeable_check.py index 429691c..445b2c2 100644 --- a/pym/portage/util/writeable_check.py +++ b/pym/portage/util/writeable_check.py @@ -55,7 +55,7 @@ def linux_ro_checker(dir_list): # _dir ^ ^ attr1 ^ attr2 # there can be a variable number of fields # to the left of the ' - ', after the attr's, so split it there - mount = line.split(' - ') + mount = line.split(' - ', 1) _dir, attr1 = mount[0].split()[4:6] attr2 = mount[1].split()[2] if attr1.startswith('ro') or attr2.startswith('ro'):
