cups-helper: split on newlines in cups helper
We want to split on both spaces and newlines, not just spaces, for the case when cups-config does have proper output. Speculative fix for the bug, untested on a system it affects. BUG=92772 Review URL: http://codereview.chromium.org/7647025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96811 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
@ -32,7 +32,7 @@ def run_cups_config(mode):
|
|||||||
flags = cups.communicate()[0].strip()
|
flags = cups.communicate()[0].strip()
|
||||||
|
|
||||||
flags_subset = []
|
flags_subset = []
|
||||||
for flag in flags.split(' '):
|
for flag in flags.split():
|
||||||
flag_mode = None
|
flag_mode = None
|
||||||
if flag.startswith('-l'):
|
if flag.startswith('-l'):
|
||||||
flag_mode = '--libs'
|
flag_mode = '--libs'
|
||||||
|
Reference in New Issue
Block a user