git: fef1f3fecd5b - stable/14 - pkg: prefer .pkg extension

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Fri, 11 Oct 2024 15:28:12 UTC
The branch stable/14 has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=fef1f3fecd5b6e7bf040f6dd2e31177332c3c0ec

commit fef1f3fecd5b6e7bf040f6dd2e31177332c3c0ec
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2024-10-07 15:11:09 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2024-10-11 15:27:41 +0000

    pkg: prefer .pkg extension
    
    .pkg is the default extension as of commit c244b1d8a387, falling back to
    .txz if not found.
    
    PR:             281924
    Reviewed by:    bapt
    Fixes: a2aac2f5e564 ("pkg(7): when bootstrapping first search for pkg.bsd file then pkg.txz")
    Fixes: c244b1d8a387 ("pkg: settle the uniq extension to .pkg instead of .bsd")
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D46977
    
    (cherry picked from commit f5c847ae849aab9354d0956afd683f1c90bfd91e)
---
 usr.sbin/pkg/pkg.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/usr.sbin/pkg/pkg.c b/usr.sbin/pkg/pkg.c
index 0689c67cf822..b78565b9437a 100644
--- a/usr.sbin/pkg/pkg.c
+++ b/usr.sbin/pkg/pkg.c
@@ -896,7 +896,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)
@@ -1168,7 +1168,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) {