Page MenuHomeFreeBSD

freebsd-update src component skip if not installed
ClosedPublic

Authored by kczekirda on Apr 24 2015, 6:45 PM.
Tags
None
Referenced Files
F106654518: D2364.diff
Fri, Jan 3, 11:06 AM
Unknown Object (File)
Mon, Dec 30, 1:57 PM
Unknown Object (File)
Tue, Dec 24, 9:07 AM
Unknown Object (File)
Sun, Dec 8, 9:48 AM
Unknown Object (File)
Nov 22 2024, 3:07 PM
Unknown Object (File)
Nov 1 2024, 9:31 PM
Unknown Object (File)
Nov 1 2024, 9:31 PM
Unknown Object (File)
Nov 1 2024, 9:31 PM
Subscribers
None

Details

Summary

if /usr/src is empty skip src component

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

kczekirda retitled this revision from to freebsd-update src component skip if not installed.
kczekirda updated this object.
kczekirda edited the test plan for this revision. (Show Details)
kczekirda set the repository for this revision to rS FreeBSD src repository - subversion.
kczekirda changed the visibility from "Public (No Login Required)" to "kczekirda (Kamil Czekirda)".
kczekirda changed the visibility from "kczekirda (Kamil Czekirda)" to "Public (No Login Required)".
delphij requested changes to this revision.Apr 27 2015, 8:49 PM
delphij edited edge metadata.
delphij added inline comments.
head/usr.sbin/freebsd-update/freebsd-update.sh
219

This is really hacky and I don't like it (although I can live with it if it's necessary evil), do we absolutely have no alternatives of hardcoding knowledge about 'src'?

By the way, the negation here is unnecessary and confusing. Please reorganize the code so that ! is not used.

222

If we must hardcode /usr/src knowledge, can't we just use if [ -e /usr/src/COPYRIGHT ] instead of a full ls -A?

This revision now requires changes to proceed.Apr 27 2015, 8:49 PM
kczekirda edited edge metadata.
kczekirda removed rS FreeBSD src repository - subversion as the repository for this revision.
kczekirda edited edge metadata.
kczekirda marked 2 inline comments as done.
delphij edited edge metadata.

Accepting this as I didn't see any objections.

This revision is now accepted and ready to land.Jun 7 2015, 5:04 AM

This looks reasonable to me now -- delphij, ready for this to go into the tree?

nwhitehorn edited edge metadata.

Looks good to me.

allanjude edited edge metadata.