Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F136925280
D18849.id52870.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
728 B
Referenced Files
None
Subscribers
None
D18849.id52870.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D18849: Use BASEDIR when checking for src component
Attached
Detach File
Event Timeline
Log In to Comment