Comment 4 for bug 45566

Revision history for this message
Sitsofe Wheeler (sitsofe) wrote : Fix for changelogs that don't use epoch when source package does

As the comments in the source hinted, the epoch stuff is a bit dicey. In this patch I strip the epoch off changelog versions and the source version number so it hopefully won't matter if they are there or not in all combinations.

I also compile the version matching regex outside the loop and don't do regex matching at all if we don't have a version number (which happens on things like new major numbered kernels)

Tested with:
capplets-data 2.14.1-0ubuntu7
gnome-control-center 2.14.1-0ubuntu7
gnome-mag 0.12.4-0ubuntu3
libgnome-mag2 0.12.4-0ubuntu3
libvte-common 0.12.1-0ubuntu1
gaim 1.5.0+1.5.1cvs20051015-1ubuntu9

acpi-support 0.84
app-install-data 0.1.32
firefox 1.5.dfsg+1.5.0.1-1ubuntu10
metacity 2.14.3-0ubuntu2
vim-common 6.4-006+2ubuntu4