summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-10-15test-common.sh: fix quotingisacdaavidIsaac David
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-13blacklist test: distinguish between empty string and empty line properIsaac David
Plenty of functions in libreblacklist are expected to print empty lines, so as to signify that the archpkg at that line in the input has an empty accompanying field. Printing no newline and skipping to the next archpkg is therefore a bug; one that would pass unnoticed by current tests. This is because command substitution removes trailing whitespace. I.e. the following is true: [[ $(libreblacklist get-rep <<<'') == $(libreblacklist get-rep <<<$'\n') ]] Process substitution and pipes preserve whitespace, but only the latter work with #!/usr/bin/env roundup, so we use that.
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-09-13test/librestage: mark the tests that make take a long timev20170913Luke Shumaker
2017-07-29Merge branch 'master' of ssh://git.parabola.nu:1863/~git/packages/libretoolsDavid P
2017-07-29Added more translated lines to po/es/libretools.poDavid P
2017-07-09librerelease: Fix rmdir failingv20170709.1Luke Shumaker
This changed because I added `set -e`. There's no test for this (yet) because it would take too long for me to mock the server-size. I'll do it eventually. Also, this fixes HOOKPOSTRELEASE running in $WORKDIR/staging, which is the wrong place for it to run.
2017-07-09po/es: Run msgmerge to update for fixed librexgettextv20170709Luke Shumaker
I ran `msgmerge -UFi xbs.po ../xbs.pot` for each message domain, but used git gui to only stage substansive changes; not any changes to line-wrapping.
2017-07-09po: do checks on localizations before compiling themLuke Shumaker
2017-07-09po: add pot headersLuke Shumaker
2017-07-09Get it producing .mo files again.Luke Shumaker
2017-07-09librexgettext: Make the tests passLuke Shumaker
2017-07-09test: librexgettext: Add testsLuke Shumaker
2017-07-09testenv: make resilient to changes in config.mkLuke Shumaker
2017-07-08l10n: es: Fix obvious problemsLuke Shumaker
There are two places where the punctuation was on the outside of the end-quote; leading to syntax errors. There's one place where the msgid was partially translated.
2017-07-08Makefile: add support for compiling and installing localizationsLuke Shumaker
This means that the new `po/files.generate` target can be used to build the `.pot` files without doing anything else; we can stop requiring translators to install ruby-ronn. It also means that we can put the `.pot` files in the source tarball, to make it even easier for translators. Unfortunately, it does add the extra step of having to create another symlink when adding a new locale.
2017-07-08Makefile: rename $(outdir)/everything.pot to $(srcdir)/dir.potLuke Shumaker
2017-07-08Makefile: have docdir behave the way the GNU standards say.Luke Shumaker
I had docdir = $(datarootdir)/doc pkgdocdir = $(docdir)/libretools # install docs to $(pkgdocdir) but the GNU Coding Standards (July 25, 2016 revision), say I should be doing docdir = $(datarootdir)/doc/libretools # install docs to $(docdir) As the config.mk states, we aren't a GNU package. But let's still follow their standards here, to follow the principle of least surprise.
2017-07-08librechroot: Respect the -n flag (fixes test)Luke Shumaker
2017-07-08test: librechroot: verify that the `-n` flag worksLuke Shumaker
2017-07-08po/HACKING: mention package dependenciesLuke Shumaker
2017-07-06More translations to po/es/libretools.poDavid P
2017-07-05Parcially translated libretools.po to Spanish [es]David P
It's the longest one, it will take time, but from bit to bit it works :)
2017-07-05Translated xbs.po to Spanish [es]David P
2017-07-05Translated librelib.po to Spanish [es]David P
2017-07-05Translated gitget.po to Spanish [es]David P
2017-07-05add a po/HACKING file explaining how to add translationsLuke Shumaker
2017-07-04librechroot: make sure that makepkg.conf is always parsed as textv20170705Luke Shumaker
https://lists.parabola.nu/pipermail/dev/2017-June/005576.html
2017-06-21libredbdiff: Fix configurationLuke Shumaker
1. the config at the top referenced libredbdiff.conf:statedir; which hadn't been loaded yet 2. the 'compare' arg parser referenced libredbdiff.conf:repos; which hadn't been loaded yet
2017-06-21conf.sh: Don't look at SUDO_USER if it's rootLuke Shumaker
Fixes https://labs.parabola.nu/issues/1372
2017-06-21librefetch: Fix regression from 6092b9dLuke Shumaker
2017-06-21test: conf.sh: don't assume conf.sh works in sh; use bashLuke Shumaker
2017-06-21test: librerelease: update for new REPODEST formatLuke Shumaker
2017-06-21test: librerelease: fix descriptionLuke Shumaker
2017-06-21test: conf.sh: verify that LIBREUSER is correct when `sudo sudo -u $LIBREUSER`Luke Shumaker
https://labs.parabola.nu/issues/1372
2017-06-20librerelease: Fix REPODEST validation criteriaLuke Shumaker
2017-05-25aur: use EXIT_* for $retLuke Shumaker
2017-05-25move more things to use the $EXIT_* variablesLuke Shumaker
2017-05-25repo-diff: fix unquoted variablesLuke Shumaker
2017-05-25more $EXIT_* usageLuke Shumaker
2017-05-25libreblacklist: reformat some loops to be more readableLuke Shumaker
2017-05-25librerelease: mimic makepkg GPG signaturesLuke Shumaker
https://lists.parabola.nu/pipermail/dev/2017-May/005515.html
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