Merge lp:~laney/sessioninstaller/axi-bytes into lp:sessioninstaller

Proposed by Iain Lane
Status: Needs review
Proposed branch: lp:~laney/sessioninstaller/axi-bytes
Merge into: lp:sessioninstaller
Diff against target: 12 lines (+1/-1)
1 file modified
sessioninstaller/utils.py (+1/-1)
To merge this branch: bzr merge lp:~laney/sessioninstaller/axi-bytes
Reviewer Review Type Date Requested Status
Aptdaemon Developers Pending
Review via email: mp+283438@code.launchpad.net

Commit message

apt-xapian-index terms are bytes - pass bytes to startsWith() when looking at them.

Description of the change

To reproduce - try to install anything using sessioninstaller when starting totem from a terminal. You'll see the trace.

To post a comment you must log in.

Unmerged revisions

151. By Iain Lane

apt-xapian-index terms are bytes - pass bytes to startsWith() when looking at them.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'sessioninstaller/utils.py'
2--- sessioninstaller/utils.py 2015-08-09 10:41:17 +0000
3+++ sessioninstaller/utils.py 2016-01-21 12:34:08 +0000
4@@ -64,7 +64,7 @@
5 for m in axi.postlist("XP" + pkg):
6 doc = axi.get_document(m.docid)
7 for term_iter in doc.termlist():
8- if term_iter.term.startswith("XDF"):
9+ if term_iter.term.startswith(b"XDF"):
10 if markup:
11 markup += "\n\n"
12 file_name = term_iter.term[3:]

Subscribers

People subscribed via source and target branches