Page MenuHomeFreeBSD

Add pkgbase METALOG diagnostic tool
ClosedPublic

Authored by emaste on Apr 24 2020, 8:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 11 2024, 3:50 PM
Unknown Object (File)
Mar 11 2024, 3:46 PM
Unknown Object (File)
Mar 11 2024, 3:46 PM
Unknown Object (File)
Mar 8 2024, 2:07 AM
Unknown Object (File)
Jan 20 2024, 8:16 AM
Unknown Object (File)
Jan 8 2024, 5:05 AM
Unknown Object (File)
Dec 20 2023, 6:33 AM
Unknown Object (File)
Dec 17 2023, 11:51 AM
Subscribers

Details

Summary

Submitted by: Yang Wang <2333@outlook.jp>
Sponsored by: The FreeBSD Foundation

Diff Detail

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

Event Timeline

I think this is otherwise good as a first pass.

tools/pkgbase/metalog_reader.lua
3 ↗(On Diff #70960)

This should go after the copyright header, as we do in C

5 ↗(On Diff #70960)

We've leaned towards not having multi-line/block comments thus far, but this might be OK for copyright header.

35 ↗(On Diff #70960)

As in our C style, if we're going to wrap then the operator should appear just before the wrap, rather than just after.

42–43 ↗(On Diff #70960)

I somewhat wonder if we shouldn't try to pull argparse into base, or write a quick-n-dirty getopt(3) shim for lua.

Thanks for the comments - I've updated the version in my tree, and will commit to tools/ soon. We can iterate on it from there.

tools/pkgbase/metalog_reader.lua
42–43 ↗(On Diff #70960)

Yeah, that sounds like a good idea

This revision was not accepted when it landed; it landed in state Needs Review.May 10 2020, 4:11 PM
This revision was automatically updated to reflect the committed changes.