PBR

Comment 20 for bug 1206730

Revision history for this message
Robert Collins (lifeless) wrote :

Ok, this is happening because neutron uses preversioning:

556 if distance == 0:
557 return last_semver
558 import pdb;pdb.set_trace()
559 -> if target_version is not None:
560 return target_version.to_dev(distance)
561 else:
562 return new_version.to_dev(distance)

(Pdb) new_version
pbr.version.SemanticVersion(2015.1.0.0rc3)
(Pdb) new_version.to_dev(distance)
pbr.version.SemanticVersion(2015.1.0.0rc3.dev1)

(Pdb) target_version
pbr.version.SemanticVersion(2015.1.0)
(Pdb) target_version.to_dev(distance)
pbr.version.SemanticVersion(2015.1.0.dev1)

I'm not sure that this is sanely fixable. preversioning is fundamentally broken when the target version is wrong.