Page MenuHomeFreeBSD

Improved error messages when *.txz checksum failed during installation
ClosedPublic

Authored by ygy on Jul 18 2017, 7:34 PM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 10 2024, 6:10 AM
Unknown Object (File)
Feb 8 2024, 11:35 AM
Unknown Object (File)
Feb 7 2024, 12:04 AM
Unknown Object (File)
Dec 30 2023, 12:35 AM
Unknown Object (File)
Dec 24 2023, 8:48 AM
Unknown Object (File)
Dec 20 2023, 4:24 AM
Unknown Object (File)
Dec 13 2023, 7:07 AM
Unknown Object (File)
Nov 28 2023, 12:39 AM
Subscribers
None

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

usr.sbin/bsdinstall/scripts/checksum
35 ↗(On Diff #30923)

This committed as part of rS321178

66 ↗(On Diff #30923)

usual sh style puts the individual case entries aligned with case

68 ↗(On Diff #30923)

Maybe add "Please check for a newer snapshot." -- @gjb does that sound reasonable?

usr.sbin/bsdinstall/scripts/checksum
66 ↗(On Diff #30923)

My vim auto-indent script does the same indentation style as in this diff, which I tend to prefer. We do not have a hard-written style(9) for sh(1) scripts that I can find.

68 ↗(On Diff #30923)

Yes.

usr.sbin/bsdinstall/scripts/checksum
66 ↗(On Diff #30923)

But this indentation style is not consistent with the rest of bsdinstall

usr.sbin/bsdinstall/scripts/checksum
66 ↗(On Diff #30923)

If for consistency in bsdinstall(8), then ok.

usr.sbin/bsdinstall/scripts/checksum
66 ↗(On Diff #30923)

fwiw the no-extra-indent style is nearly universal in the src tree (in bin/usr.bin/sbin/usr.sbin)

Updated based on review

ygy marked 8 inline comments as done.Jul 19 2017, 3:42 AM

Pulled from upstream to reflect whitespace fix from another commit

usr.sbin/bsdinstall/scripts/checksum
65–66 ↗(On Diff #30952)

One small improvement, we should be able to avoid the extra invocation (sed) and just use *-ALPHA*|*-CURRENT|*-STABLE|*-PRERELEASE) in the case statement.

This revision was automatically updated to reflect the committed changes.