git review list fails with newer gerrit versions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
git-review (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
The trusty git-review packages list command fails with newer versions of gerrit:
$ git review --list
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
list_
File "/usr/bin/
len(
TypeError: object of type 'int' has no len()
The reason is a missing string conversion in the list_reviews function:
diff --git a/usr/bin/
index 1790ff7..0e0b0b7 100755
--- a/usr/bin/
+++ b/git-review
@@ -694,7 +694,7 @@ def list_reviews(
for i in FIELDS:
- len(review_
+ len(str(
)
review_
$ lsb_release -rd
Description: Ubuntu 14.04.5 LTS
Release: 14.04
$ apt-cache policy git-review
git-review:
Installed: 1.23-1
Candidate: 1.23-1
Version table:
*** 1.23-1 0
500 http://
100 /var/lib/
tags: | added: patch trusty |
Status changed to 'Confirmed' because the bug affects multiple users.