[Bug 270496] ports-mgmt/pkg: Broken JSON with -o EVENT_PIPE
Date: Tue, 28 Mar 2023 14:44:38 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270496 Bug ID: 270496 Summary: ports-mgmt/pkg: Broken JSON with -o EVENT_PIPE Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: pkg@FreeBSD.org Reporter: einar@isnic.is Flags: maintainer-feedback?(pkg@FreeBSD.org) Assignee: pkg@FreeBSD.org We're using a fork of the pkgng module in ansible. Our fork uses '-o EVENT_PIPE' to parse the output from pkg. Our module sometimes fails with a JSONDecodeError and I've tracked it down to this output from pkg: '{ "type": "INFO_INSTALL_FINISHED", "data": { "pkgname": "php81-sysvsem", "pkgversion": "8.1.17", "message": "[{"message":"This file has been added to automatically load the installed extension:\n/usr/local/etc/php/ext-20-sysvsem.ini","type":"install"}]"}}' I assume the problem is the quotes around the array in data.message -- You are receiving this mail because: You are the assignee for the bug.