Date: Tue, 14 Jan 2025 08:58:19 +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-xj9F3k7GCD@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 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 =3D 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 =3D backquote!(PkgDB::command(:pkg_create), '-vb', pkgname, File.join($tmpdir, pkgname + $portsdb.pkg_sufx)) --=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-xj9F3k7GCD>