Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | _ob_try_load_internal_messages(): Remove tab on empty line | Patrick McDermott | 2019-03-15 | 1 | -1/+1 |
| | |||||
* | _ob_try_load_internal_messages(): Remove stray line | Patrick McDermott | 2019-03-15 | 1 | -1/+0 |
| | |||||
* | _ob_try_load_internal_messages(): Rename OB_BUILDDIR env var | Patrick McDermott | 2019-03-15 | 1 | -2/+2 |
| | |||||
* | _ob_try_load_messages(): Replace . with eval/cat | Patrick McDermott | 2019-03-15 | 1 | -6/+6 |
| | |||||
* | _ob_try_load_messages(): Abort on missing argument | Patrick McDermott | 2019-03-15 | 1 | -2/+2 |
| | |||||
* | ob_set_text_domain(): _ob_load_internal_text_domain() sets LC_MESSAGES | Patrick McDermott | 2019-03-15 | 1 | -11/+0 |
| | |||||
* | _ob_load_internal_text_domain(): New __init function | Patrick McDermott | 2019-03-15 | 1 | -0/+40 |
| | |||||
* | _ob_get_msg(): Don't call ob_set_text_domain() | Patrick McDermott | 2019-03-15 | 1 | -5/+1 |
| | | | | | Repeat instead of reusing code, as the result is actually shorter and faster code. | ||||
* | ob_*_is_concerned(): Document | Patrick McDermott | 2019-03-15 | 1 | -0/+22 |
| | |||||
* | _ob_match_plat(): Move closer to usage | Patrick McDermott | 2019-03-14 | 1 | -16/+16 |
| | |||||
* | _ob_match_plat(): Remove loop | Patrick McDermott | 2019-03-14 | 1 | -10/+7 |
| | |||||
* | _ob_match_arch(): Remove loop | Patrick McDermott | 2019-03-14 | 1 | -27/+19 |
| | | | | | ob_arch_is_concerned() calls this function with just one field arch at a time, so this only needs to handle one arch. | ||||
* | ob_match_*(): Make private | Patrick McDermott | 2019-03-14 | 1 | -6/+6 |
| | | | | | These functions are only ever called by ob_*_is_concerned() and are not very useful outside that context. | ||||
* | ob_match_*(): Drop checks for "all" match arch/plat | Patrick McDermott | 2019-03-14 | 1 | -16/+0 |
| | |||||
* | ob_match_plat(): Use clearer variable names | Patrick McDermott | 2019-03-14 | 1 | -7/+7 |
| | |||||
* | lib/package.sh: Make global variables lowercase | Patrick McDermott | 2019-03-14 | 1 | -19/+19 |
| | |||||
* | ob_get_binary_packages(): Avoid multiple runs with 0 bin pkgs | Patrick McDermott | 2019-03-14 | 1 | -3/+4 |
| | |||||
* | lib/deps.sh, lib/metadata.sh, lib/package/2.sh: Wrap long lines | Patrick McDermott | 2019-03-14 | 3 | -5/+10 |
| | | | | lib/changelog.sh and lib/control.sh still have many long lines. | ||||
* | Fix missing "()" after function names in @details | Patrick McDermott | 2019-03-14 | 7 | -37/+38 |
| | | | | | Also fix function name in ob_get_system_plat()'s @details and update ob_error()'s @details. | ||||
* | ob_set_package_substvars(): Document | Patrick McDermott | 2019-03-14 | 1 | -0/+10 |
| | |||||
* | ob_get_binary_packages(): Document | Patrick McDermott | 2019-03-14 | 1 | -0/+14 |
| | |||||
* | ob_error(): Update @pure doc command | Patrick McDermott | 2019-03-14 | 1 | -1/+1 |
| | |||||
* | ob_error(), ob_warn(), ob_info(): Make @stderr doc cmds more consistent | Patrick McDermott | 2019-03-14 | 1 | -6/+5 |
| | |||||
* | ob_get_*_parameter(): Fix @operand doc commands | Patrick McDermott | 2019-03-14 | 1 | -3/+3 |
| | |||||
* | ob_init_package(): Document | Patrick McDermott | 2019-03-14 | 1 | -0/+9 |
| | |||||
* | ob_summarize_package_*(): Remove | Patrick McDermott | 2019-03-13 | 1 | -14/+0 |
| | | | | | | These were supposed to generate lists of architectures (platforms) and architecture (platform) wildcards for which a source package can be built, like the Architecture field of Debian dsc files. | ||||
* | ob_get_doc_files(): Document | Patrick McDermott | 2019-03-13 | 1 | -0/+8 |
| | |||||
* | ob_get_doc_files(): Drop arch and plat parameters | Patrick McDermott | 2019-03-13 | 2 | -8/+1 |
| | | | | | | The set of documentation files to be provided should not be dependent on the architecture and platform for which at least some of the binary packages are built. | ||||
* | ob_get_doc_package(): Document | Patrick McDermott | 2019-03-13 | 1 | -0/+7 |
| | |||||
* | ob_get_*_parameter(): Document | Patrick McDermott | 2019-03-13 | 1 | -0/+15 |
| | |||||
* | ob_parse_package_metadata(): Merge into ob_init_package() | Patrick McDermott | 2019-03-13 | 1 | -15/+10 |
| | | | | | | Now that caching is gone, the ob_parse_package_metadata() interface function is trivially short, and keeping it separate unnecessarily complicates the API. | ||||
* | ob_get_binary_packages(): Use -p instead of -P for platform | Patrick McDermott | 2019-03-13 | 1 | -2/+2 |
| | |||||
* | ob_reduce_deps(): Use -p instead of -P for platform | Patrick McDermott | 2019-03-13 | 1 | -3/+3 |
| | | | | Same rationale as in commit 34f21a5. | ||||
* | ob_parse_dep(): Swap -p and -P option letters | Patrick McDermott | 2019-03-13 | 1 | -11/+11 |
| | | | | Be consistent with opkbuild and other executable CLIs. | ||||
* | _ob_get_system_path(): Protect against DATADIR with "%" | Patrick McDermott | 2019-03-13 | 1 | -4/+4 |
| | |||||
* | Protect against cmd operands beginning with "-" | Patrick McDermott | 2019-03-13 | 5 | -7/+7 |
| | |||||
* | ob_parse_changelog(): Protect [ commands from strings beginning with "-" | Patrick McDermott | 2019-03-13 | 1 | -4/+4 |
| | |||||
* | ob_parse_package_metadata(): Return non-zero exit status on error | Patrick McDermott | 2019-03-13 | 1 | -1/+1 |
| | |||||
* | Eliminate -a and -o options of [ commands | Patrick McDermott | 2019-03-13 | 2 | -11/+16 |
| | | | | POSIX marks these as obsolescent. | ||||
* | Protect [ commands from strings beginning with "-" | Patrick McDermott | 2019-03-13 | 2 | -24/+24 |
| | |||||
* | ob_parse_package_metadata(): Eliminate caching | Patrick McDermott | 2019-03-13 | 1 | -55/+0 |
| | | | | Cf. commit da45b6d. | ||||
* | ob_parse_changelog(), ob_parse_control(): Explicitly assign null strings | Patrick McDermott | 2019-03-13 | 2 | -2/+2 |
| | | | | | POSIX say, "If value is not specified, the variable shall be given a null value." Make this explicit, for consistency. | ||||
* | ob_substvars(): s/while true/while :/ | Patrick McDermott | 2019-03-13 | 1 | -1/+1 |
| | |||||
* | ob_parse_dep(): Fix crash on dep without version, arches, or plats | Patrick McDermott | 2019-03-13 | 1 | -4/+4 |
| | |||||
* | Don't let libopkbuild errors cause exit with -e | Patrick McDermott | 2019-03-13 | 4 | -26/+27 |
| | |||||
* | ob_substvars(), ob_init_package(): Call _ob_error_msg() | Patrick McDermott | 2019-03-13 | 2 | -2/+2 |
| | |||||
* | ob_error(): Make non-fatal | Patrick McDermott | 2019-03-13 | 1 | -3/+2 |
| | |||||
* | libopkbuild: Abort on invalid function arguments | Patrick McDermott | 2019-03-13 | 9 | -353/+158 |
| | | | | | | | | | | Shift arguments and abort instead of returning 125. Incorrect numbers of function arguments suggest application/library incompatibilities or serious errors by the application developer. Either way, the application developer should be made immediately aware of this (and not allowed to simply not check return values), and continuing to run and handle any further API calls may be unsafe. | ||||
* | _ob_abort(): New internal function to crash hard | Patrick McDermott | 2019-03-13 | 1 | -0/+7 |
| | |||||
* | ob_match_arch(): Use clearer variable names | Patrick McDermott | 2019-03-13 | 1 | -9/+9 |
| |