generated version numbers could do with some work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AutoPPA |
Fix Committed
|
Medium
|
Unassigned |
Bug Description
The version numbers generated by autoppa have a few problems:
1. they compare less than any normal version number. e.g.
>>> import apt_pkg
>>> apt_pkg.
>>> apt_pkg.
1
This means you can't produce an autoppa package for the same upstream version as has been shipped in a target distribution release.
2. when comparing version numbers depend on Ubuntu release code names maintaining lexical order. This has not been true in the past, and may not hold in the future:
>>> apt_pkg.
-16
We have perfectly good version numbers that are guaranteed to always increase, so they'd make a better choice.
I'd suggest that autoppa rewrite a version number like "X.Y-Z" to either "X.Y-Z-7.10" or "X.Y-Z-ubuntu7.10" for the gutsy release and similar for other releases.
So if the base distribution includes a package "2.0.6-1ubuntu1", I'd pass "2.0.6-
Related branches
- Jamu Kakar: Approve
Changed in autoppa: | |
assignee: | nobody → jkakar |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in autoppa: | |
assignee: | jkakar → nobody |
Changed in autoppa: | |
assignee: | Christopher Armstrong (radix) → nobody |
Merged to autoppa/trunk r12 [r=jkakar].