summaryrefslogtreecommitdiff
path: root/src/lib/blacklist.sh
AgeCommit message (Collapse)Author
2024-02-21fix: pkgbuild-check-nonfree, blacklist.sh: Get the check-nonfree tests passingLuke T. Shumaker
2018-08-13libreblacklist: Better diagnostic output on update failureLuke Shumaker
2018-04-28blacklist-update: Make it safe to run in parallel, touch upLuke Shumaker
2018-01-02Change my email address lukeshu@sbcglobal.net -> lukeshu@parabola.nuLuke Shumaker
2017-10-14blacklist get-rep: re-implement to query repos instead of blacklist.txtIsaac David
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.
2017-10-09blacklist: implement `get-url` function from `reference` and `id` fieldsIsaac David
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).
2017-10-07blacklist.sh: make `blacklist-normalize` more maintainableIsaac David
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.
2017-10-07blacklist.sh: update `normalize` and `get-reason` to reflect blacklist.txtIsaac David
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()`.
2017-05-25start moving things to use the libremessages exit codesLuke Shumaker
2017-05-24Merge conf.sh:load_files and conf.sh:check_vars into load_confLuke Shumaker
2017-04-20Consistently use ". $(librelib slug)" to load libraries.Luke Shumaker
2017-04-11fixup copyright for: `return $?` can be written simply as `return`Luke Shumaker
2017-02-13`return $?` can be written simply as `return`Luke Shumaker
2016-02-08Refactor the build system. Avoid recursive make.Luke Shumaker
This looks like a lot, but more things should "just work". We have `make dist` now!
2013-05-26redo the library system; avoid hard-coded pathsLuke Shumaker
* 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
2013-05-26blacklist.sh: make -euE or non -euE safe, add comments, make executable.Luke Shumaker
Also, change blacklist-lookup()'s internals.
2013-05-26Add copyright headers to src/lib/{blacklist,conf}.shLuke Shumaker
2013-05-23lib/blacklist.sh: source conf.sh globally to ensure XDG_CACHE_HOME is setLuke Shumaker
2013-05-23lib/blacklist.sh:blacklist-cat(): download blacklist iff it doesn't existLuke Shumaker
2013-05-22add a lib/blacklist.sh, use it for pkgbuild-check-nonfreeLuke Shumaker