freebsd-update: Use BASEDIR when checking for src component
src could potentially be installed under the based dir and not under the root or vice versa. PR: 224048 Submitted by: Gerald Aryeetey <aryeeteygerald_rogers.com> Reviewed by: delphij MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D18849
This commit is contained in:
parent
8f0916fc11
commit
cfd9be9c1f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=343152
@ -221,7 +221,7 @@ config_KeepModifiedMetadata () {
|
||||
config_Components () {
|
||||
for C in $@; do
|
||||
if [ "$C" = "src" ]; then
|
||||
if [ -e /usr/src/COPYRIGHT ]; then
|
||||
if [ -e "${BASEDIR}/usr/src/COPYRIGHT" ]; then
|
||||
COMPONENTS="${COMPONENTS} ${C}"
|
||||
else
|
||||
echo "src component not installed, skipped"
|
||||
|
Loading…
Reference in New Issue
Block a user