[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#883133: Bug#883134: general: Add new package header Upstream-Version:



On Sat, 2017-12-02 at 06:06 +0200, Victor Porton wrote:
> For this I need the upstream versions of "python2.7" and "xsltproc".

The upstream version of a Debian package can be deterministically
extracted from the package version, see https://www.debian.org/doc/debi
an-policy/#s-f-version for the format.

TL;DR: remove everything before the first colon (":") if there is one.
The remove everything after the final hyphen ("-"), again if there is
one. I expect you will find libraries for doing this in various
languages in the archive (I'm sure there will be Python and Perl ones
at least).

python2.7 on my system has version 2.7.13-2, so the upstream version is
2.7.13.

xsltproc is 1.1.29-2.1, so upstream 1.1.29.

Ian.


Reply to: