| Summary: | "pkg repo" command broken in 1.17.X | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | pascal.guitierrez |
| Component: | Individual Port(s) | Assignee: | freebsd-pkg (Nobody) <pkg> |
| Status: | Closed Works As Intended | ||
| Severity: | Affects Only Me | CC: | dewayne, leres, lwhsu, shawn.webb |
| Priority: | --- | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
pascal.guitierrez
2021-08-13 09:47:28 UTC
(In reply to pascal.guitierrez from comment #0) This commit was what broke `pkg repo`. Reverting it make the command happy again. https://github.com/freebsd/pkg/commit/727f1c948eb5fe2d16c867db9e195c50166bf903 (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? Pascel analysis is the right one, this is a not an issue. (In reply to pascal.guitierrez from comment #2) Thank-you for providing env REPO_ACCEPT_LEGACY_PKG=true as I'm sure that many others that customise their ports will benefit from an ability to revert inhibiting behaviour. |