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)
Tue, Feb 25, 11:27 PM
Unknown Object (File)
Sat, Feb 22, 3:57 AM
Unknown Object (File)
Tue, Feb 11, 9:59 PM
Unknown Object (File)
Mon, Feb 10, 6:33 AM
Unknown Object (File)
Sun, Feb 9, 9:54 AM
Unknown Object (File)
Jan 5 2025, 11:06 AM
Unknown Object (File)
Jan 3 2025, 9:37 AM
Unknown Object (File)
Dec 5 2024, 8:08 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.