Page MenuHomeFreeBSD

pkgbase: report errors via metalog reader exit status
ClosedPublic

Authored by emaste on Nov 23 2022, 9:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 26, 9:52 PM
Unknown Object (File)
Tue, May 14, 2:00 PM
Unknown Object (File)
Apr 25 2024, 2:34 PM
Unknown Object (File)
Apr 23 2024, 7:47 PM
Unknown Object (File)
Apr 18 2024, 2:41 PM
Unknown Object (File)
Apr 18 2024, 2:25 AM
Unknown Object (File)
Apr 17 2024, 4:50 PM
Unknown Object (File)
Mar 15 2024, 11:17 AM
Subscribers

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

emaste created this revision.
emaste added a reviewer: pkgbase.

I'm a bit of a lua novice, so if there's a canonical way to do this please let me know

kevans added inline comments.
tools/pkgbase/metalog_reader.lua
89

Drop the assignment, it'll default to nil which is a falsey value

159

return #duperr or #inodeerr, perhaps

Perhaps more idomatic lua from kevans

tools/pkgbase/metalog_reader.lua
159

Or actually return #duperr > 0 or #inodeerr > 0

This revision is now accepted and ready to land.Nov 25 2022, 3:23 AM