Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
Rationale: https://lists.parabola.nu/pipermail/dev/2017-October/005936.html
This makes get-rep a general-purpose tool for finding replacements and
providers of any package, not just blacklisted-ones. It works equally
well reading from full blacklist.txt lines, just pkgname lines, and
unwittingly; a single line with many pkgnames.
Some caveats for further discussion:
- This changes behavior from showing just one replacement/provider to
_all_ replacements and providers (including pkgname itself) in the repos.
- By "repos" I mean the repos the executing machine is configured to
access. This could be changed in the future with `expac --config`
if more package databases are desired (e.g. different
architecture).
- Results are shown using the "repo/pkgname ..." format rather than
just "pkgname ...". I think this makes the program more useful.
- Results aren't reordered to ensure that the first provider of
pkgname is pkgname itself. Order will be as expected otherwise, by
virtue of expac parsing repos in order.
|
|
The blacklist allows referring to a number of trusted bug trackers to
complement the information given in the reason field. However,
maintainable shorthand identifiers are used instead of full
URLs. Printing the latter based on the former is the job of this new
functionality.
This also introduces corresponding test cases and l10n strings
(together with translations for the `es` locale).
|
|
For about the same amount of code we can save us the hassle of messing
with sed expressions every time the number of fields changes in blacklist.txt.
by knowing the delimiter character(s) and the number of times it's
supposed to appear, a corresponding normalizing expression is
constructed on the fly.
|
|
the blacklist has had a couple extra fields (ref, id) for some time, but
`libreblacklist` was never made aware of the change.
this updates test/lib-blacklist-test.sh for the same reason, and adds
a test for comment stripping under `it_normalizes_correctly()`.
|
|
|
|
|
|
|
|
|
|
|
|
This looks like a lot, but more things should "just work".
We have `make dist` now!
|
|
* install all library files to $(libexecdir)/libretools, instead of
- $(bindir)
- $(datadir)/libretools
- $(datadir)/devtools
* symlink the executable library files into $(bindir)
* add the tool `librelib`
* instead of ". /path/to/lib.sh", use ". $(librelib lib.sh)"
* mark all libraries with shebangs of what options they support
* move blacklist.sh to libreblacklist
|
|
Also, change blacklist-lookup()'s internals.
|
|
|
|
|
|
|
|
|