[Bug 280899] ports-mgmt/pkg: version command does not work as expected

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 18 Aug 2024 09:42:31 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280899

            Bug ID: 280899
           Summary: ports-mgmt/pkg: version command does not work as
                    expected
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: pkg@FreeBSD.org
          Reporter: guido@gvr.org
             Flags: maintainer-feedback?(pkg@FreeBSD.org)
          Assignee: pkg@FreeBSD.org

I have a port net/mtr-nox11 installed. 
Lately its maintainer deleted that port with the following commit message:
net/mtr: Convert X11 option to x11 and nox11 flavors
net/mtr-nox11 is net/mtr@nox11 now.

But if I now get:
> pkg version -Pqovl '?'
net/mtr-nox11                      ?   orphaned: net/mtr-nox11

I think the reason is the following info in pkg info:
Origin         : net/mtr-nox11

It seems there is no support for flavors here yet.
Perhaps the origin should just be net/mtr or net/mtr@nox11 (in the latter cae
pkg version should ignore that part after the '@')

-- 
You are receiving this mail because:
You are the assignee for the bug.