Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Mar 2023 14:44:38 +0000
From:      bugzilla-noreply@freebsd.org
To:        pkg@FreeBSD.org
Subject:   [Bug 270496] ports-mgmt/pkg: Broken JSON with -o EVENT_PIPE
Message-ID:  <bug-270496-32340@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

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.

help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-270496-32340>