[Bug 260467] /usr/sbin/pkg cannot add ports-mgmt/pkg via directory path (breaks nanobsd)
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 260467] /usr/sbin/pkg cannot add ports-mgmt/pkg via directory path (breaks nanobsd)"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 260467] /usr/sbin/pkg cannot add ports-mgmt/pkg via directory path (breaks nanobsd)"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 16 Dec 2021 08:20:38 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260467
Bug ID: 260467
Summary: /usr/sbin/pkg cannot add ports-mgmt/pkg via directory
path (breaks nanobsd)
Product: Base System
Version: 12.3-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: bin
Assignee: bugs@FreeBSD.org
Reporter: 606u@dir.bg
Created attachment 230168
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=230168&action=edit
Fix
Basically
/usr/sbin/pkg add -f -y pkg-1.2.3.pkg
works correctly, whereas
/usr/sbin/pkg add -f -y /path/to/pkg-1.2.3.pkg
does not, due to the way `pkg_is_pkg_pkg()` tests if package is ports-mgmt/pkg.
This behaviour breaks nanobsd scripts, as well.
--
You are receiving this mail because:
You are the assignee for the bug.