Date: Wed, 22 Jan 2025 14:02:34 +0000 From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 233304] ports-mgmt/pkg info -q package doesn't work Message-ID: <bug-233304-32340-MBZroPEqMs@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-233304-32340@https.bugs.freebsd.org/bugzilla/> References: <bug-233304-32340@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233304 --- Comment #5 from Baptiste Daroussin <bapt@FreeBSD.org> --- the logic is inheritted from the historical behaviour of pkg_info and can be revisited. the logic as I understood when I had to implement it is: pkg info <somthing> query if that thing exists, so it shows some output if = yes (and I mimic pkg_info output) and nothing not with the return error code 0 = or 1. so if you add '-q' then you end up with no output at all and the same er= ror code -o request an explicit information, so it always prints it, same for -f -a do request everything to be printed. again I can revisit this logic this is very simple code to change. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-233304-32340-MBZroPEqMs>