Comment 3 for bug 911262

Revision history for this message
Gediminas Paulauskas (menesis) wrote :

No, I am running precise with bzr-builddeb 2.8.0, also tried with trunk.

The reason why assert fails is that extract_tarball_version returns an unicode string

(Pdb) n
AssertionError: AssertionError()
> /home/menesis/.bazaar/plugins/builddeb/cmds.py(800)run()
-> assert isinstance(version, str)
(Pdb) version
u'1.0'

Even if I make it str, get a different error:

$ bzr mu ../z3c.ptcompat-1.0.tar.gz
Using distribution precise
Using version string 1.0.
bzr: ERROR: z3c.ptcompat 1.0 was not found in <bzrlib.plugins.builddeb.upstream.TarfileSource object at 0x93a2dac>.

Attached patch makes it work.