maintainer-feedback requested: [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
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-pkg (Nobody)
<pkg@FreeBSD.org> for maintainer-feedback:
Bug 280899: ports-mgmt/pkg: version command does not work as expected
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280899



--- Description ---
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 '@')