Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102996596
D37482.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D37482.diff
View Options
diff --git a/tools/pkgbase/metalog_reader.lua b/tools/pkgbase/metalog_reader.lua
--- a/tools/pkgbase/metalog_reader.lua
+++ b/tools/pkgbase/metalog_reader.lua
@@ -86,13 +86,14 @@
local sess = Analysis_session(filename, verbose, w_notagdirs)
+ local errors
if printall then
io.write('--- PACKAGE REPORTS ---\n')
io.write(sess.pkg_report_full())
io.write('--- LINTING REPORTS ---\n')
- print_lints(sess)
+ errors = print_lints(sess)
elseif checkonly then
- print_lints(sess)
+ errors = print_lints(sess)
elseif pkgonly then
io.write(sess.pkg_report_simple(dcount, dsize, {
fuid and sess.pkg_issetuid or nil,
@@ -103,6 +104,10 @@
io.stderr:write('This text should not be displayed.')
usage()
end
+
+ if errors then
+ return 1
+ end
end
--- @param man boolean
@@ -151,6 +156,7 @@
local inodewarn, inodeerr = sess.inode_report()
io.write(inodewarn)
io.write(inodeerr)
+ return #duperr > 0 or #inodeerr > 0
end
--- @param t table
@@ -520,4 +526,4 @@
}
end
-main(arg)
+os.exit(main(arg))
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 20, 3:22 PM (21 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14741371
Default Alt Text
D37482.diff (1 KB)
Attached To
Mode
D37482: pkgbase: report errors via metalog reader exit status
Attached
Detach File
Event Timeline
Log In to Comment