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)
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: center 2.14.1-0ubuntu7 5.1cvs20051015- 1ubuntu9
capplets-data 2.14.1-0ubuntu7
gnome-control-
gnome-mag 0.12.4-0ubuntu3
libgnome-mag2 0.12.4-0ubuntu3
libvte-common 0.12.1-0ubuntu1
gaim 1.5.0+1.
acpi-support 0.84 1.5.0.1- 1ubuntu10
app-install-data 0.1.32
firefox 1.5.dfsg+
metacity 2.14.3-0ubuntu2
vim-common 6.4-006+2ubuntu4