Skip src component if /usr/src is empty.
Differential Revision: https://reviews.freebsd.org/D2364 Submitted by: kczekirda Reviewed by: cperciva, delphij, nwhitehorn, allanjude MFC after: 2 weeks
This commit is contained in:
parent
cdea5d8c84
commit
5a74378c7b
@ -216,7 +216,15 @@ config_KeepModifiedMetadata () {
|
|||||||
# Add to the list of components which should be kept updated.
|
# Add to the list of components which should be kept updated.
|
||||||
config_Components () {
|
config_Components () {
|
||||||
for C in $@; do
|
for C in $@; do
|
||||||
COMPONENTS="${COMPONENTS} ${C}"
|
if [ "$C" = "src" ]; then
|
||||||
|
if [ -e /usr/src/COPYRIGHT ]; then
|
||||||
|
COMPONENTS="${COMPONENTS} ${C}"
|
||||||
|
else
|
||||||
|
echo "src component not installed, skipped"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
COMPONENTS="${COMPONENTS} ${C}"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2642,10 +2650,10 @@ install_unschg () {
|
|||||||
while read F; do
|
while read F; do
|
||||||
if ! [ -e ${BASEDIR}/${F} ]; then
|
if ! [ -e ${BASEDIR}/${F} ]; then
|
||||||
continue
|
continue
|
||||||
|
else
|
||||||
|
echo ${BASEDIR}/${F}
|
||||||
fi
|
fi
|
||||||
|
done < filelist | xargs chflags noschg || return 1
|
||||||
chflags noschg ${BASEDIR}/${F} || return 1
|
|
||||||
done < filelist
|
|
||||||
|
|
||||||
# Clean up
|
# Clean up
|
||||||
rm filelist
|
rm filelist
|
||||||
|
Loading…
Reference in New Issue
Block a user