Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 Oct 2024 19:37:12 -0400
From:      Ed Maste <emaste@freebsd.org>
To:        Mark Millard <marklmi@yahoo.com>
Cc:        dev-commits-src-main@freebsd.org
Subject:   Re: git: cf1aba2857c1 - main - freebsd-update: refuse to operate on a pkgbase system
Message-ID:  <CAPyFy2A-nRCmA%2BT%2BovdxcrKS-bDrGF8E-dmCJZ%2BNuYnCmekuqQ@mail.gmail.com>
In-Reply-To: <7FF78752-80EB-47CA-9E60-515607D3CFE5@yahoo.com>
References:  <7FF78752-80EB-47CA-9E60-515607D3CFE5.ref@yahoo.com> <7FF78752-80EB-47CA-9E60-515607D3CFE5@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 31 Oct 2024 at 15:17, Mark Millard <marklmi@yahoo.com> wrote:
>
> > + # Presence of FreeBSD-* package(s) indicates packaged base.
> > + if ! pkg -c ${BASEDIR} info -q -x '^FreeBSD' 2>/dev/null; then
>
> Slight difference in the comment vs. the code's behavior? :
>
> Comment: FreeBSD-*
> Code:    FreeBSD*

The code is a regex ^FreeBSD while I wrote the comment thinking of a
shell glob - it's fine that they're not identical (except for this
confusion).  That said there is room for improvement here - we'll want
to detect pkgbase installs in downstream projects that use a different
package naming scheme (e.g. packages starting with CheriBSD).

I'll keep a note of this comment for any potential iteration on this.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPyFy2A-nRCmA%2BT%2BovdxcrKS-bDrGF8E-dmCJZ%2BNuYnCmekuqQ>