]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pkgbase: examine METALOG files relative to stage root directory
authorEd Maste <emaste@FreeBSD.org>
Wed, 16 Nov 2022 19:53:42 +0000 (14:53 -0500)
committerEd Maste <emaste@FreeBSD.org>
Thu, 17 Nov 2022 13:52:12 +0000 (08:52 -0500)
commitbca4d27052bf5735725449cd0be51bd58cf0cb80
treece5470e5726e7d8b78126118ef2f8e494322bba2
parent9e6bbe47a503137f1698232070cb4c1a4f14be10
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
tools/pkgbase/metalog_reader.lua