HomeFreeBSD

pkgbase: examine METALOG files relative to stage root directory

Description

pkgbase: examine METALOG files relative to stage root directory

Previously we stripped the '.' from the beginning of each METALOG entry
to determine the path to stat. This meant that we examined files on the
build host, not the staged files.

Instead, strip off the last part of the specified METALOG pathname to
find the stage root directory, and stat files relative to that.

Reviewed by: bapt
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D37412

(cherry picked from commit bca4d27052bf5735725449cd0be51bd58cf0cb80)

Details

Provenance
emasteAuthored on Nov 16 2022, 7:53 PM
Reviewer
bapt
Differential Revision
D37412: pkgbase: examine METALOG files relative to stage root directory
Parents
rG689a5b194435: build: Use `rm -fv` for BATCH_DELETE_OLD_FILES
Branches
Unknown
Tags
Unknown