Pattern problems in gtk interface when ubuntu isn't in changelog version
Bug #727270 reported by
Javier Collado
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
packager |
Fix Released
|
Low
|
Javier Collado |
Bug Description
When gtk interface is used and the following options are checked:
- Replace ubuntu with current distribution
- Append revision number
revision number isn't appended if the version number in changelog file doesn't contain 'ubuntu'.
The pattern used when both options are checked should work even if ubuntu isn't part of the changelog version.
Related branches
To post a comment you must log in.
Despite it would be easy to solve the problem using a combination of python code and regular expressions, it wouldn't be so easy to store/retrieve that information to/from the configuration file.
After some investingation, it's been decided to use one line sed scripts since they provide the flexibility needed to do fix the problem (s/ubuntu/ ${distro} /g;s/$/ ~rev${revno} /) and at the same time is really easy to store/retrieve them as a string to/from the configuration file.