Bug 227483 - ports-mgmt/portmaster fails trying to process repo file 'digests.txz'
Summary: ports-mgmt/portmaster fails trying to process repo file 'digests.txz'
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Stefan Esser
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-13 01:01 UTC by Serge
Modified: 2019-08-24 09:17 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (se)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Serge 2018-04-13 01:01:19 UTC
Trying to clean packages in the package folder where a repo was created with 

$ pkg repo /var/ports/packages

portmaster fails with the following message

===>>> Empty origin in /var/ports/packages/digests.txz
===>>> Aborting update

Apparently, it treats the file 'digests.txz' like a compiled package (and maybe it would have also done so with 'meta.txz' and 'packagesite.txz', had it not failed on the first one).

If these file names are hard-coded into the repo system, perhaps they should be known to portmaster too? These files are even stored in 'packages' root folder rather than in 'packages/All' where portmaster normally saves them. It seems that portmaster should not look in the root folder, because no packages should be found there.
Comment 1 Walter Schwarzenfeld freebsd_triage 2019-08-24 09:17:20 UTC
Look at poudriere
The "normal" packages are in the directory "All"

pkg repo
-o output-dir, --output-dir output-dir
            Create the repository in the specified directory instead of the
            package directory.