Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
package_checks: output dep lists with proper offset (#3928)
**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](https://yaml.readthedocs.io/en/latest/example/#output-of-dump-as-a-string). 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`: ``` - breeze-cursor-theme - budgie-backgrounds - budgie-desktop - font-hack-ttf - livecd: - budgie-desktop-branding - test - materia-gtk-theme - materia-gtk-theme-dark - noto-sans-ttf - noto-serif-ttf - papirus-icon-theme - qtstyleplugins - solus-artwork - test ``` New output `budgie-desktop-branding`: ``` - breeze-cursor-theme - budgie-backgrounds - budgie-desktop - font-hack-ttf - livecd : - budgie-desktop-branding - test - materia-gtk-theme - materia-gtk-theme-dark - noto-sans-ttf - noto-serif-ttf - papirus-icon-theme - qtstyleplugins - solus-artwork - test ``` Old output `gcc` rundeps: ``` - ^g++: gcc - ^gfortran: - gcc - libgfortran - ^libgcc-32bit: libgcc - ^libgfortran-32bit: libgfortran - ^libgomp-32bit: - libgcc-32bit - libgomp - ^libstdc++-32bit: libstdc++ - mpc - mpfr - test ``` New output `gcc` rundeps: ``` - ^g++ : gcc - ^gfortran : - gcc - libgfortran - ^libgcc-32bit : libgcc - ^libgfortran-32bit : libgfortran - ^libgomp-32bit : - libgcc-32bit - libgomp - ^libstdc++-32bit : libstdc++ - mpc - mpfr - test ``` **Checklist** - [x] Package was built and tested against unstable
- Loading branch information