~romaimperator/keryx/devel

« back to all changes in this revision

Viewing changes to libkeryx/definitions/dpkg/__init__.py

  • Committer: Chris Oliver
  • Date: 2009-09-18 05:58:23 UTC
  • Revision ID: excid3@gmail.com-20090918055823-e9nmqf686kqpsf8d
Use unicode strings for storing all package data

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
            
128
128
            if line.startswith(" "):
129
129
                if conf:
130
 
                    pkg["Conffiles"] += "%s\n" % line
 
130
                    store = "Conffiles"
131
131
                else:
132
 
                    pkg["Long"] += "%s\n" % line
 
132
                    store = "Long"
 
133
                pkg[store] += unicode("%s\n" % line, errors="ignore")
133
134
 
134
135
            elif line.startswith("Conffiles:"):
135
136
                conf = True