On Wed, Mar 22, 2006 at 07:57:48PM -0600, Ken Bloom wrote:
> The attached patch (previously sent to debian-dpkg) adds the subst
> vars ArchDep-Version, ArchIndep-Version, and Upstream-Version, which
> will make it easier to keep packages working when bin-NMU's occur, so
> that packages like galeon don't break when they are bin-NMUed.

Cool.

> --- controllib.pl.old   2006-01-15 22:50:55.000000000 -0600
> +++ controllib.pl       2006-01-16 23:04:24.000000000 -0600
> @@ -241,6 +241,9 @@
>      &parsecdata('L',0,"parsed version of changelog");
>      close(CDATA); $? && &subprocerr("parse changelog");
>      $substvar{'Source-Version'}= $fi{"L Version"};
> +    $substvar{'ArchDep-Version'}= $fi{"L Version"};
> +    $substvar{'ArchIndep-Version'}= $fi{"L Version"};
> +    $substvar{'ArchIndep-Version'} =~ s/\+b[0-9]+$//;
> +    $substvar{'Upstream-Version'}= $fi{"L Version"};
> +    $substvar{'Upstream-Version'} =~ s/-.*$//;

Should drop from the *last* - onwards, not the first dash.
: $substvar{'Upstream-Version'} =~ s/-[^-]*$//;

--Jeroen

-- 
Jeroen van Wolffelaar
[EMAIL PROTECTED]
http://jeroen.A-Eskwadraat.nl


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to