Date: Tue, 14 Jan 2025 16:53:37 +0000 From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 284054] ports-mgmt/pkg: Does not recognize .pkg as a valid suffix (triggered by portupgrade) Message-ID: <bug-284054-32340-vowO21csHX@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-284054-32340@https.bugs.freebsd.org/bugzilla/> References: <bug-284054-32340@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D284054 --- Comment #9 from Mark Millard <marklmi26-fbsd@yahoo.com> --- (In reply to Mark Millard from comment #7) Hmm. There was a much later fix (2024!) to the usage messages to track that change: diff --git a/usr.sbin/pkg/pkg.c b/usr.sbin/pkg/pkg.c index 70086886fbc5..cc23ffb8c257 100644 --- a/usr.sbin/pkg/pkg.c +++ b/usr.sbin/pkg/pkg.c @@ -895,7 +895,7 @@ static const char args_bootstrap_message[] =3D static const char args_add_message[] =3D "Too many arguments\n" -"Usage: pkg add [-f] [-y] {pkg.txz}\n"; +"Usage: pkg add [-f] [-y] {pkg.pkg}\n"; static int pkg_query_yes_no(void) @@ -1167,7 +1167,7 @@ main(int argc, char *argv[]) if (add_pkg) { if (pkgarg =3D=3D NULL) { - fprintf(stderr, "Path to pkg.txz required\n= "); + fprintf(stderr, "Path to pkg.pkg required\n= "); exit(EXIT_FAILURE); } if (access(pkgarg, R_OK) =3D=3D -1) { See: https://cgit.freebsd.org/src/commit/usr.sbin/pkg?id=3Df5c847ae849aab9354d09= 56afd683f1c90bfd91e So the bootstrap's messaging did not make discovery of the default being .pkg simple via that path of discovery. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-284054-32340-vowO21csHX>