[Bug 284054] ports-mgmt/pkg: Does not recognize .pkg as a valid suffix (triggered by portupgrade)
Date: Tue, 14 Jan 2025 08:58:19 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284054
Herbert J. Skuhra <herbert@gojira.at> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |herbert@gojira.at
--- Comment #5 from Herbert J. Skuhra <herbert@gojira.at> ---
(In reply to Terry Kennedy from comment #4)
You also get this message when you run:
pkg create -f pkg sudo
But 'file sudo-1.9.16p2_1.pkg' shows
sudo-1.9.16p2_1.pkg: XZ compressed data, checksum CRC64
So everything is working, isn't it?
To get rid of the message you can try:
--- /usr/local/sbin/portupgrade.orig 2025-01-06 07:47:32.000000000 +0100
+++ /usr/local/sbin/portupgrade 2025-01-14 09:51:26.242888000 +0100
@@ -1077,7 +1077,7 @@
end
if $pkgdb.with_pkgng?
- system!(PkgDB::command(:pkg), 'create', '-o', $packages_dir, '-f',
$portsdb.pkg_sufx, pkgname)
+ system!(PkgDB::command(:pkg), 'create', '-o', $packages_dir, pkgname)
else
system!(PkgDB::command(:pkg_create), '-vb', pkgname,
File.join($packages_dir, pkgname + $portsdb.pkg_sufx))
@@ -2084,7 +2084,7 @@
if $pkgdb.with_pkgng?
backup_pkgfile = File.join($tmpdir, pkgname + $portsdb.pkg_sufx)
- backquote!(PkgDB::command(:pkg), 'create', '-o', $tmpdir, '-f',
$portsdb.pkg_sufx, pkgname)
+ backquote!(PkgDB::command(:pkg), 'create', '-o', $tmpdir, pkgname)
else
if str = backquote!(PkgDB::command(:pkg_create), '-vb', pkgname,
File.join($tmpdir, pkgname + $portsdb.pkg_sufx))
--
You are receiving this mail because:
You are the assignee for the bug.