Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145185412
D2364.1777511139.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
622 B
Referenced Files
None
Subscribers
None
D2364.1777511139.diff
View Options
Index: head/usr.sbin/freebsd-update/freebsd-update.sh
===================================================================
--- head/usr.sbin/freebsd-update/freebsd-update.sh
+++ head/usr.sbin/freebsd-update/freebsd-update.sh
@@ -216,7 +216,15 @@
# Add to the list of components which should be kept updated.
config_Components () {
for C in $@; do
- COMPONENTS="${COMPONENTS} ${C}"
+ if [ ! "$C" = "src" ]; then
+ COMPONENTS="${COMPONENTS} ${C}"
+ else
+ if [ "$(ls -A "/usr/src/")" ]; then
+ COMPONENTS="${COMPONENTS} ${C}"
+ else
+ echo "/usr/src/ is empty, skip src component"
+ fi
+ fi
done
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 30, 1:05 AM (17 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28478274
Default Alt Text
D2364.1777511139.diff (622 B)
Attached To
Mode
D2364: freebsd-update src component skip if not installed
Attached
Detach File
Event Timeline
Log In to Comment