Pattern problems in gtk interface when ubuntu isn't in changelog version

Bug #727270 reported by Javier Collado
6
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

Revision history for this message
Javier Collado (javier.collado) wrote :

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.

Changed in packager:
importance: Undecided → Low
status: New → Triaged
assignee: nobody → Javier Collado (javier.collado)
milestone: none → 0.2
status: Triaged → In Progress
Revision history for this message
Javier Collado (javier.collado) wrote :

Fix committed in lp:packager (rev. 53)

Changed in packager:
status: In Progress → Fix Committed
Revision history for this message
Javier Collado (javier.collado) wrote :

Fix released in packager 0.2-0ubuntu1~rev54

Changed in packager:
status: Fix Committed → Fix Released
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.