From nobody Wed Jan 22 14:02:34 2025 X-Original-To: pkg@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YdQkf29Tnz5lWj9 for ; Wed, 22 Jan 2025 14:02:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YdQkf1cR2z3VgS for ; Wed, 22 Jan 2025 14:02:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737554554; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FN8TFcf8D3OyxTGpYxyy3boSBMdxVSVI3nDoqh/UuFY=; b=tkwvaI/XvnopZ9Z3jSc5nBUy906qBxFd6vchVmLOUwpVQQqnNDEVRo08WtDaWgWVXakeV9 HH5BU0zV4F/5JzgtL/FbnHgQ4Yg57nbxp0UBpZNepwd/fYs2s2GXmh4Y0Xd8x+vBnRS6In Xd4Aoz6RuGpZWjkz4Ye0UIzXHp8lUb5kQls2qCh4X61nS4wHBTxVO/bTj8n2yTyLo/d0sE q869crE/cFITOkkNlDoRo+JNCqArv/Z/U415dPrk3Lkr+ePlqV4VIP8sTspftjzpvkr3mS 1a+pcs4r8XgBi4hPqjqpLdLyl3sjYfKHJxktHaiibBVyNJ9hcn9Dzk9edraMNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737554554; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=FN8TFcf8D3OyxTGpYxyy3boSBMdxVSVI3nDoqh/UuFY=; b=q2MIUNU7zh0tLKeFZqvrEEB4H4ASQ1GHLJM3cmajhNE/5LQyR8fvown+N7d1sN/t9/FrjH mf0xrF2z9R2+AELpBToC1ivSduh2Oveg4sXnO5nBcBtscyEfaRCpZm1uMXxWoguJi20RQk P8cO2zgJjdJE0a7b4cK6ggJCH5fOhyUa+SHXB1KDvUxY3JUPZ35MdhDVd7XzkXlLbnsVkP 4iJE/XYnsy4H1SBTgh4MSp4IJmOi7BIAcwghS7sXaNShojko9KFoqSk62oLxVphJ3RDqbo pTe44JDflFhajANLDuY/PlHYL7K8auy/XoNGkLNLtzcdeX40Cr0r7pnjLClExQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737554554; a=rsa-sha256; cv=none; b=KeT+1COY+OifLwvSgFMyBCTlOgvT1qsAkf9BdAGIk27L5ofp4uuSuFtWm2KDrLLKDS4aDp px9NKPwLVOw32XoVtJGJeqaXf2EfWNGRAuytGq2IQcYuVjWc4u4Hkve1dkdzMkOt4RnwTE /XgbJ9tLtJAmxApTvqgqZR7SniVHGD2iiWy8k8MMJ4yJmlYJDrMHkLpNMywe86s5cRu+uT CygeCc2WDVeFf+xerHFxmmTU1eh8koQ58nzZC3YpIksKUSoTVgt4KXPG5GFl5i6Nlw+OwC D3qMODpHZAHhQ/5tyIVnWX9DbAxyX24YkyAJKTTO2RgDGKM5vGIurMGwUaE5NA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YdQkf136qzvwX for ; Wed, 22 Jan 2025 14:02:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 50ME2YnD025807 for ; Wed, 22 Jan 2025 14:02:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 50ME2YJW025806 for pkg@FreeBSD.org; Wed, 22 Jan 2025 14:02:34 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 233304] ports-mgmt/pkg info -q package doesn't work Date: Wed, 22 Jan 2025 14:02:34 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: bapt@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: pkg@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Binary package management and package tools discussion List-Archive: https://lists.freebsd.org/archives/freebsd-pkg List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkg@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233304 --- Comment #5 from Baptiste Daroussin --- 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 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.=