Page MenuHomeFreeBSD

D2364.1777511139.diff
No OneTemporary

Size
622 B
Referenced Files
None
Subscribers
None

D2364.1777511139.diff

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

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)

Event Timeline