Skip to content

Commit

Permalink
cups-helper: split on newlines in cups helper
Browse files Browse the repository at this point in the history
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
  • Loading branch information
evan@chromium.org committed Aug 15, 2011
1 parent 343b4fd commit f2e29a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion printing/cups_config_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def run_cups_config(mode):
flags = cups.communicate()[0].strip()

flags_subset = []
for flag in flags.split(' '):
for flag in flags.split():
flag_mode = None
if flag.startswith('-l'):
flag_mode = '--libs'
Expand Down

0 comments on commit f2e29a7

Please sign in to comment.