summaryrefslogtreecommitdiff
path: root/src/lib
AgeCommit message (Collapse)Author
2018-08-13libreblacklist: Better diagnostic output on update failureLuke Shumaker
2018-08-06librexgettext: Include the 'plain' command by defaultLuke Shumaker
I realized that it was missing. While we're at it, organize the defaults by their "origin".
2018-07-31Begone with XBSLuke Shumaker
2018-04-28blacklist-update: Make it safe to run in parallel, touch upLuke Shumaker
2018-04-24conf.sh: Whoops, update copyright yearLuke Shumaker
2018-04-24conf.sh(3): Touch-upLuke Shumaker
- `codeblock` was disabling <VAR> in a place; use "" for filenames instead of `` - load_conf: use [] to emphasize that <VARS>... is optional - load_conf: "each of them is", not "each of them are"
2018-04-24conf.sh: Allow load_conf to take an absolute filepathLuke Shumaker
This is useful in dbscripts. This also has a couple of happy side-effects in the implementation details - list_files and list_envvars are now only called once each - we now do save readarray-based splitting of list_files and list_envvars output
2018-04-24messages: setup_traps: Don't leak the "signal" variableLuke Shumaker
2018-03-27libremessages: whitespace_collapse: Don't insert trailing whitespacev20180327Luke Shumaker
2018-03-27librelib: Remove dead codeLuke Shumaker
2018-03-27Makefile: Use files.groups instead of nested.subdirs to split the packageLuke Shumaker
2018-01-03Makefile: don't let paths in .pot files depend on where `make` was calledLuke Shumaker
2018-01-02Change my email address lukeshu@sbcglobal.net -> lukeshu@parabola.nuLuke Shumaker
2018-01-02Merge branch 'isacdaavid'Luke Shumaker
2018-01-02manpage: libremessages(1): Fix typo "EXIT FAILURE"->"EXIT_FAILURE"Luke Shumaker
This has been sitting uncommitted in my checkout for a while.
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-07-09Get it producing .mo files again.Luke Shumaker
2017-07-09librexgettext: Make the tests passLuke Shumaker
2017-06-21conf.sh: Don't look at SUDO_USER if it's rootLuke Shumaker
Fixes https://labs.parabola.nu/issues/1372
2017-05-25more $EXIT_* usageLuke Shumaker
2017-05-25libreblacklist: reformat some loops to be more readableLuke Shumaker
2017-05-25start moving things to use the libremessages exit codesLuke Shumaker
2017-05-25messages: define EXIT_* codesLuke Shumaker
2017-05-25Fix grammar mistake in libremessages(1).Luke Shumaker
2017-05-24Merge conf.sh:load_files and conf.sh:check_vars into load_confLuke Shumaker
2017-05-24messages.sh: fix punctuation in a commentLuke Shumaker
2017-05-24lib/conf.sh: Tidy loopsLuke Shumaker
use while read -r var; do ... done < <(...) rather than for var in $(...); do ... done
2017-05-24libremessages: leave stdout alone (fixes test)Luke Shumaker
2017-05-05libremessages(1): document find_cached_srcpackageLuke Shumaker
2017-05-04random tidy upLuke Shumaker
2017-05-04shellcheck directivesLuke Shumaker
2017-05-04bugfix [2/2]: toru-pathLuke Shumaker
2017-05-01Clean up argument parsing for libremessages formatters.Luke Shumaker
2017-04-20Quote unquoted strings that should probably be quoted.Luke Shumaker
These were found with the help of shellcheck. Nothing more complicated than wrapping a variable in double quotes has been done.
2017-04-20Consistently use ". $(librelib slug)" to load libraries.Luke Shumaker
2017-04-11Update for new devtools versionLuke Shumaker
2017-04-11Expect devtools files to already be patched.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
2017-01-30Update and tidy the build system for autothing v3.Luke Shumaker
2016-06-09Work with the new version of autothing.Luke Shumaker
2016-04-18Improve the librexgettext --help text. (also, update the copyright)Luke Shumaker
2016-04-15libremessages:flag: Fix several things (also librexgettext)Luke Shumaker
- Fix a bug where it panicked if given an odd number of sub-headings. - Document the the ability to include sub-headings. - Fix librexgettext's handling of it. It only worked correctly for times when it was only called once in a program, or when it was only ever called with exactly one flag/description pair (and no headings).
2016-03-03buildsystem: rename all of the install-* variables to libretools-*Luke Shumaker
2016-03-03fix generating blacklist.sh.potLuke Shumaker
2016-02-09The libremessages man page still listed not having librexgettext as aLuke Shumaker
bug. librexgettext exists now, so mention it.
2016-02-09Fix typo in libremessages manpageLuke Shumaker