Bug#917566: lintian: please warn about non-supported previous versions
[2019-01-06 23:10] Chris Lamb <lamby@debian.org>
> Hi Dmitry,
>
> > Probably I missing something oblivious, but still: if you know that
> > version X is latest
>
> […]
>
> I think it was me who was missing oblivious; your pseudocode helped
> clarify what you were after so thanks for persevering.
>
> > grep -v '#' $maintscript | grep -F "$v" ; then
> ^^^^^^^^^^^^
> Can we make this bit smarter? Or rather; can we? I'm wondering if
> we might be grepping for "1.2-3" but the script uses "dpkg --
> compare-versions $X -gte 1.2" or something like that..
As far as I can tell, scrolling several pages on codesearch, maintainers
usually compare either with 1.2-3 or 1.2~. On other hand, I have nothing
to support idea, that bare 1.2 would decrease accuracity.
> > But issue is not sysvinit-specific. I have number of packages, that have
> > code in maintainer scripts, that deals with upgrades from specific
> > versions
> Can you link to some concrete examples on this bug report if you
> have a moment?
Sure. There is 180 pages of checks on codesearch[^1]. I did not dig, how
much of them are pre-oldstable, but at least following are:
* vim-common
* openssh
* xorg-server
[^1] https://codesearch.debian.net/search/?q=--compare-versions
Reply to: