[Bug 284054] ports-mgmt/pkg: Does not recognize .pkg as a valid suffix (triggered by portupgrade)
Date: Tue, 14 Jan 2025 16:53:37 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284054 --- 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[] = static const char args_add_message[] = "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 == 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) == -1) { See: https://cgit.freebsd.org/src/commit/usr.sbin/pkg?id=f5c847ae849aab9354d0956afd683f1c90bfd91e So the bootstrap's messaging did not make discovery of the default being .pkg simple via that path of discovery. -- You are receiving this mail because: You are the assignee for the bug.