Page MenuHomeFreeBSD

D18849.id52870.diff
No OneTemporary

D18849.id52870.diff

Index: usr.sbin/freebsd-update/freebsd-update.sh
===================================================================
--- usr.sbin/freebsd-update/freebsd-update.sh
+++ usr.sbin/freebsd-update/freebsd-update.sh
@@ -219,9 +219,16 @@
# Add to the list of components which should be kept updated.
config_Components () {
+ _SRC_COMPONENT_DIR = "/usr/src"
+
+ # Use the base dir if it has been set.
+ if ! [ -z ${BASEDIR} ]; then
+ _SRC_COMPONENT_DIR = "${BASEDIR}/${_SRC_COMPONENT_DIR}"
+ fi
+
for C in $@; do
if [ "$C" = "src" ]; then
- if [ -e /usr/src/COPYRIGHT ]; then
+ if [ -e "${_SRC_COMPONENT_DIR}/COPYRIGHT" ]; then
COMPONENTS="${COMPONENTS} ${C}"
else
echo "src component not installed, skipped"

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 21, 4:53 PM (22 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25779087
Default Alt Text
D18849.id52870.diff (728 B)

Event Timeline