-
Notifications
You must be signed in to change notification settings - Fork 138
Support running only specific checks in xbps-pkgdb #352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
hi there! :) i took a deeper look at it, and other than the remaining issue, it looks all good to me! :) |
|
I don't think I think it would generally fit better into the codebase to use an integer/bitmasks: I think it makes sense to merge symlinks and files into one category. |
Hmm, good point. Suggestions for flag name? I think it would be nice to have a shortopt option for it.
Fair enough. It also simplifies initialization.
Indeed, the split may have been too granular. I will update it with your suggestions. Thanks! |
9ff8cf6 to
7363f37
Compare
|
For now, I went with no shortopt. I implemented your suggested changes. EDIT: also fixed indentation. |
2bfa2b5 to
966e66a
Compare
Also clean up macro in check.c.
40fb854 to
0554072
Compare
Add the --checks option to xbps-pkgdb, which allows the user to select which package checks should be run. It works for a single package as well as with the --all option. Co-authored-by: Duncaen Overbruck <mail@duncano.de>
WIP because I have no idea how to construct the array to pass to
getsubopt...Using the example in https://man.voidlinux.org/getsubopt.3 complains about discarded qualifiers in
char *const available[], using the example in https://man.voidlinux.org/getsubopt.3p complains about the discarded qualifiers when passingconst char *available[]to the function.Since XBPS aims to build with
-Werror, I need to find some way of satisfying the compiler.This also closes #351 , if that's acceptable.