-
Notifications
You must be signed in to change notification settings - Fork 89
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
package_checks: output dep lists with proper offset #3928
Conversation
I guess this will need
or something to properly clear CI? Locally I still get an error though
Not sure how I can resolve that |
Maybe, if The
That's a type error, apparently you are assigning a string to a variable that is |
6ba1e98
to
9e7dbdd
Compare
**Summary** Change loader/dumper to ruamel to enable putting out dependency lists with proper offset. This way the output can directly be copied and pasted into the recipe. Resolves getsolus#3924 Signed-off-by: Thomas Staudinger <[email protected]>
9e7dbdd
to
8463803
Compare
Okay, I fixed the lint errors. Not sure if everything is 100% above board though ^^ Going to take a look at the package_lint.yaml tomorrow |
Signed-off-by: Thomas Staudinger <[email protected]>
b9516b6
to
52b860c
Compare
Okay, package lint worked with a test commit to |
@silkeh It's probably best if you're the one reviewing this...? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Summary
Change loader/dumper to ruamel to enable putting out dependency lists with proper offset and colon spacing. This way the output can directly be copied and pasted into the recipe.
Note: I couldn't find a way to do this with pyyaml; Dumper implementation adopted from ruamel docs. I also couldn't get
top_level_colon_align
to work for some reason, so in cases of very short subpackage names with dependencies the colon might be placed too far to the left (not 100% sure if there is such a case in the repo; the "^g++" case happens to perfectly align)Resolves #3924
Test Plan
Old output
budgie-desktop-branding
:New output
budgie-desktop-branding
:Old output
gcc
rundeps:New output
gcc
rundeps:Checklist