Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Nov 2025 00:34:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        pkg@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 291200] ports-mgmt/pkg periodic script weekly/400.status-pkg uses a wrong pkg -R option
Message-ID:  <bug-291200-32340-e4lQJuv5oK@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-291200-32340@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-pkg (Nobody)
<pkg@FreeBSD.org> for maintainer-feedback:
Bug 291200: ports-mgmt/pkg periodic script weekly/400.status-pkg uses a wrong
pkg -R option
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291200



--- Description ---
beginning with version 2.4.x the periodic script weekly/400.status-pkg uses

pkg version -CRv index

so the -R option checks versions ALWAYS remotely with a repository to compare
which
ports/pkg are out of date.
This only works with pkg-only installations. If ports are used, the INDEX and
the ports
tree should be used for comparison, which are automatically checked without the
-R option.
Then it also works with ports installed just like in all other version before.
If no -R option is used, then (according to the manual) pkg version looks into
ports tree 
and INDEX and if both not found, automatically uses -R.
That behaviour also can not be overridden with -I or other options set in
$pkgargs.

Summary: IMHO is the use of -R is simply wrong and it should be removed.


home | help

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