[Bug 257807] "pkg repo" command broken in 1.17.X

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 14 Aug 2021 03:45:09 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257807

--- Comment #2 from pascal.guitierrez_at_gmail.com ---
(In reply to Shawn Webb from comment #1)

actually perhaps this is not a bug, since the default pkg extension has been
changed from .txz to .pkg?

from the commit message:

- only consider the .pkg when creating a repository
  add an option REPO_ACCEPT_LEGACY_PKG to keep index old pkg

renaming the packages to *.pkg makes it work as expected:

pkg repo /tmp/test 
Creating repository in /tmp/test: 100%
Packing files for repository: 100%

ls /tmp/test | paste -
curl-7.77.0.pkg
meta.conf
meta.pkg
meta.txz
packagesite.pkg
packagesite.txz


and also when:
env REPO_ACCEPT_LEGACY_PKG=true pkg repo /tmp/test
Creating repository in /tmp/test: 100%
Packing files for repository: 100%

works on previous .txz files

so i'd say this is a non-issue?

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Sat Aug 14 2021 - 03:45:09 UTC

Original text of this message