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

Holger Levsen holger at layer-acht.org
Sun Jan 15 21:38:18 UTC 2017


package: piuparts
version: 0.74
submitter: anbe at debian.org
severity: important
x-debbugs-cc: Sean Whitton <spwhitton at spwhitton.name>

Hi,

filing this as proper bug… now for real ;)

On Sun, Jan 15, 2017 at 09:14:55PM +0100, Andreas Beckmann wrote:
> On 2017-01-15 21:03, Andreas Beckmann wrote:
> > I didn't get around testing that apt install patch before this afternoon:
> > 
> > 0m15.3s DEBUG: Starting command: ['dpkg-query', '-f', '${Version}\n', '-W', 'apt']
> > 0m15.5s DUMP: 
> >   1.4~beta2
> > 0m15.5s DEBUG: Command ok: ['dpkg-query', '-f', '${Version}\n', '-W', 'apt']
> > 0m15.5s DEBUG: Starting command: ['chroot', '/tmp/piupartss/tmpskpShz', 'apt-get', '-y', '--allow-downgrades', 'install', '/tmp/piuparts-depends-dummy.deb']
> > 0m15.5s DUMP: 
> >   E: Command line option --allow-downgrades is not understood
> 
> That failure was in a wheezy-proposed test.
> 

how strange, as the code from a9219384 explicitly tests this:

            (status, output) = run(["dpkg-query", "-f", "${Version}\n", "-W", "apt"], ignore_errors=True)
            apt_can_install_debs = LooseVersion(output.strip()) >= LooseVersion("1.1")


> The last patch disables the new feature for now:

ack. (atm only present in git branch develop…)


-- 
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/d701b694/attachment.sig>


More information about the Piuparts-devel mailing list