revno generated as a string, now breaking %(revno)d

Bug #1005083 reported by Shawn Sherwood
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bombardier
New
High
Shawn Sherwood

Bug Description

With Ubuntu 12.04 and PyYAML, I'm getting errors building the distutils due to casting problems:

This is from currently generated core/lib/_version.py (made by "bzr version-info --format python:

version_info = {'branch_nick': u'1.10',
 'build_date': '2012-05-26 23:14:43 -0700',
 'clean': None,
 'date': '2011-09-20 08:42:57 -0700',
 'revision_id': 'shawn.sherwood@peacemaker-20110920154257-8ku7p1t4sfc6u3gv',
 'revno': '796'}

Now revno is coming in as a string.

Changes like this to a few files fixed this for bzr 2.5.0 (Ubuntu 12.04 default)

-VERSION = str("%(branch_nick)s-%(revno)d" % version_info)
+VERSION = str("%(branch_nick)s-%(revno)s" % version_info)

allowed me to continue. Using a %s shouldn't hurt anythin for older version of bzr.

Tags: precise ubuntu
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.