[Piuparts-devel] Bug#718544: Bug#718544: Bug#718544: reports packages installed when they weren't
Holger Levsen
holger at layer-acht.org
Fri Jan 10 00:31:00 UTC 2014
control: tags -1 +pending
Hi Julien,
On Mittwoch, 18. Dezember 2013, Julien Cristau wrote:
> diff --git a/piuparts.py b/piuparts.py
> index 9134924..4d357ea 100644
> --- a/piuparts.py
> +++ b/piuparts.py
> @@ -1202,6 +1202,13 @@ class Chroot:
> self.run(["dpkg", "-i"] + tmp_files, ignore_errors=True)
> self.run(apt_get_install)
>
> + retcode, output = self.run(["dpkg-query", "-f", "${Package}
> ${Status}\n", "-W"] + [os.path.basename(f).split('_')[0] for f in
> package_files]) + for line in output.splitlines():
> + pkg, desired, whatever, status = line.split()
> + if status != 'installed':
> + logging.error("Installation of %s failed", pkg)
> + panic()
> +
> logging.info ("Installation of %s ok", tmp_files)
>
> if with_scripts:
>
thanks! care to resend this as a git patch?
cheers,
Holger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/piuparts-devel/attachments/20140110/49ca303b/attachment.sig>
More information about the Piuparts-devel
mailing list