~umang/quickly/587538-no-changelog

« back to all changes in this revision

Viewing changes to quickly/configurationhandler.py

  • Committer: Didier Roche
  • Date: 2010-06-11 11:13:21 UTC
  • mfrom: (509.1.1 better-dep-detection)
  • Revision ID: didrocks@ubuntu.com-20100611111321-e5enzjb11z0u3w3f
  - fix not all syntax for dependencies supported (LP: #587520) (Frederik
    Elwert)

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
        fileconfig = file(quickly_file_path, 'rb')
49
49
        for line in fileconfig: 
50
50
            fields = line.split('#')[0] # Suppress commentary after the value in configuration file and in full line
51
 
            fields = fields.split('=') # Separate variable from value
 
51
            fields = fields.split('=', 1) # Separate variable from value
52
52
            # normally, we have two fields in "fields"
53
53
            if len(fields) == 2:
54
54
                config[fields[0].strip()] = fields[1].strip() 
90
90
            for line in fileconfig:
91
91
                fields = line.split('#')[0] # Suppress commentary after the value in configuration file and in full line
92
92
                fieldsafter = line.split('#')[1:]
93
 
                fields = fields.split('=') # Separate variable from value
 
93
                fields = fields.split('=', 1) # Separate variable from value
94
94
                # normally, we have two fields in "fields" and it should be used by config tabular
95
95
                if len(fields) == 2:
96
96
                    if fields[0].strip() in remaingconfigtosave: