[Piuparts-devel] Bug#851517: piuparts uses apt --allow-downgrades even if it should not

Holger Levsen holger at layer-acht.org
Sun Jan 15 22:19:07 UTC 2017


On Sun, Jan 15, 2017 at 03:07:07PM -0700, Sean Whitton wrote:
> Thank you for CCing me on this.
 
thanks for replying so quickly…

> I tested LooseVersion with the version of apt in wheezy:
> 
>     iris ~ % python
>     Python 2.7.13rc1 (default, Dec  4 2016, 14:12:39) 
>     [GCC 6.2.1 20161124] on linux2
>     Type "help", "copyright", "credits" or "license" for more information.
>     >>> from distutils.version import LooseVersion
>     >>> LooseVersion("0.9.7.9+deb7u7") >= LooseVersion("1.1")
>     False
> 
> So LooseVersion can handle the version number.  Possibly dpkg-query is
> behaving differently on wheezy?  Perhaps you could run that dpkg-query
> command on wheezy and see what you get.

$ dpkg-query -f "0.9.7.9+deb7u7\n" -W apt
0.9.7.9+deb7u7
$ 


-- 
cheers,
	Holger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 811 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/piuparts-devel/attachments/20170115/efc85cef/attachment.sig>


More information about the Piuparts-devel mailing list