Commit Graph

12 Commits

Author SHA1 Message Date
Krzesimir Nowak
a75a5ed7bf pkg-auto: Strip only one space when printing help 2025-02-20 11:39:37 +01:00
Krzesimir Nowak
0ba6b62bf0 pkg-auto: Disable pager when printing package occurences 2025-02-06 13:45:28 +01:00
Krzesimir Nowak
020f9fe19c pkg-auto: Add some tools
These tools I found useful when I had to investigate why report
generation failed. Since report generation failed, I had no reports
about ebuild diffs or package occurences. The new scripts,
`diff_pkg.sh` and `occurences.sh`, allowed me to get these reports for
the troublesome package.
2025-01-22 13:32:39 +01:00
Krzesimir Nowak
6536b2cf3d pkg-auto: Emerge dev-lang/rust for SDK reports
The coreos-devel/sdk-depends is a metapackage that is emerged in
stage4 of the catalyst SDK build. But the fsscript that is being run
at the end of the stage4 build also pulls in dev-lang/rust package.
Thus pull both packages for the report.

This should result in updated dev-lang/rust to appear in the reports.
2025-01-22 13:16:06 +01:00
Krzesimir Nowak
9fe7006812 pkg-auto: Allow emerging multiple packages for reports 2025-01-22 13:16:06 +01:00
Krzesimir Nowak
310a8716f4 pkg-auto: Fix syncing eclass files
eclass is a file, as opposed to the package, which is a directory. So
doing `git -C eclass/foo.eclass log -- .` will fail because we can't
do "cd eclass/foo.eclass", which is what `-C` is trying to do.
2025-01-22 13:16:06 +01:00
Krzesimir Nowak
7d72d5d8a0 pkg-auto: Update README 2024-12-03 15:04:45 +01:00
Krzesimir Nowak
04b78d9657 pkg-auto: Address shellcheck complaints 2024-11-27 17:17:58 +01:00
Krzesimir Nowak
4eba9bec28 pkg-auto: Add a missing function 2024-11-27 16:49:41 +01:00
Krzesimir Nowak
ae67b87fba pkg-auto: Move some implementation detail down the file
I try to keep "public API" at the top of the file.
2024-11-27 16:00:58 +01:00
Krzesimir Nowak
dd09caba17 pkg-auto: Import a stripped-down version of eapi7-ver.eclass into impl
The eclass was removed from Gentoo, so we followed suit. This broke
the pkg-auto code. Thus I imported the eclass into the impl directory
as gentoo_ver.sh, threw away all the unnecessary parts and moved some
from pkg_auto_lib.sh to the new file.

This allowed me to also drop a hack where I was grepping for the
version regexp in the eclass. Now I'm just exporting it.
2024-11-27 16:00:58 +01:00
Krzesimir Nowak
4c5e550055 pkg-auto: Add package automation scripts
This adds some scripts I have been using for over a year to deal with
the weekly package updates.

It comes with a `README.md` which describes a workflow similar to my
own.

The `sync_packages.sh` and `update_packages.sh` scripts are currently
not used anywhere. The idea behind them was to use them for Github
Action, but that will come as a follow-up PR.
2024-11-27 16:00:57 +01:00