On Sunday 29 June 2014 14:22:18 Daniel Lintott wrote: > I don't know if this is the best method... but it seems to work. > > uversionmangle=s/(\d)-(\d-\d)/$1.$2/g
This will break as soon as any field of the version goes beyond 9: a \d alone does not match '10'. Given that upstream version begins with v, you may want to do: uversionmangle=s/(v\d+)-/$1./ This way, uversionmangles deals only with the first field and leave the other alone. This is more robust to potential upstream changes. HTH -- https://github.com/dod38fr/ -o- http://search.cpan.org/~ddumont/ http://ddumont.wordpress.com/ -o- irc: dod at irc.debian.org -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/4985778.Uz3M8EFOYU@ylum