Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | metadata, package: Encode binary package names | Patrick McDermott | 2023-09-25 | 1 | -21/+5 |
| | | | | Remove restriction on duplicate "clean" names. | ||||
* | ob_init_package(): Defend against CDPATH in Bash | Patrick McDermott | 2020-07-05 | 1 | -1/+1 |
| | | | | Why does Bash insist on breaking standard things? | ||||
* | ob_get_binary_packages(): Factor out side effects | Patrick McDermott | 2020-07-05 | 1 | -40/+35 |
| | | | | | | | As described in the documentation, it was only pure after being called once outside a subshell, but it was never actually called outside a subshell. So it rescanned the file system for binary packages every time. | ||||
* | _ob_set_binary_packages(): Remove | Patrick McDermott | 2020-07-05 | 1 | -14/+3 |
| | | | | | | | _ob_get_binary_packages_2() now just prints packages. Also fix multiple issues with (re)population of ${_ob_binary_packages} in ob_get_binary_packages(). | ||||
* | _ob_parse_package_metadata_2(): Validate section | Patrick McDermott | 2020-07-05 | 1 | -7/+1 |
| | | | | | On ob_get_binary_packages()'s first run, binary package control files haven't yet been parsed. | ||||
* | ob_get_binary_packages(): Validate section | Patrick McDermott | 2020-07-05 | 1 | -1/+7 |
| | |||||
* | ob-gencontrol: Generate a "Format" field | Patrick McDermott | 2020-06-13 | 1 | -1/+7 |
| | | | | And add the needed support to ob_get_source_parameter(). | ||||
* | ob_get_binary_packages(), *ob_*_binary_parameter(): Improve "clean" naming | Patrick McDermott | 2019-06-24 | 1 | -12/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And fix unbound variables in ob_get_binary_parameter() and _ob_set_binary_parameter(). Fixes: FAIL: tests/lib/ob_get_binary_parameter ======================================= 1..5 [...]/lib/libopkbuild.shso.2: line 568: pkg: unbound variable ok 1 - ob_init_package() PASS: tests/lib/ob_get_binary_parameter.sh 1 - ob_init_package() not ok 2 - foo Architecture FAIL: tests/lib/ob_get_binary_parameter.sh 2 - foo Architecture # Failed test 'foo Architecture' # got: '' [...]/lib/libopkbuild.shso.2: line 568: pkg: unbound variable # expected: 'any-linux-any' not ok 3 - foo Platform FAIL: tests/lib/ob_get_binary_parameter.sh 3 - foo Platform # Failed test 'foo Platform' # got: '' [...]/lib/libopkbuild.shso.2: line 568: pkg: unbound variable # expected: 'all' not ok 4 - bar Architecture FAIL: tests/lib/ob_get_binary_parameter.sh 4 - bar Architecture # Failed test 'bar Architecture' # got: '' [...]/lib/libopkbuild.shso.2: line 568: pkg: unbound variable # expected: 'all' not ok 5 - bar Platform FAIL: tests/lib/ob_get_binary_parameter.sh 5 - bar Platform # Failed test 'bar Platform' # got: '' # expected: 'all' | ||||
* | ob_set_package_substvars(): Update @operand doc cmd | Patrick McDermott | 2019-03-18 | 1 | -2/+1 |
| | |||||
* | ob_get_*_parameter(): Avoid shell error on no such field | Patrick McDermott | 2019-03-17 | 1 | -2/+4 |
| | |||||
* | Add braces to param exps in arith substs | Patrick McDermott | 2019-03-16 | 1 | -1/+1 |
| | |||||
* | 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 |
| | |||||
* | Fix missing "()" after function names in @details | Patrick McDermott | 2019-03-14 | 1 | -8/+8 |
| | | | | | 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_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 | 1 | -5/+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 |
| | |||||
* | Protect against cmd operands beginning with "-" | Patrick McDermott | 2019-03-13 | 1 | -2/+2 |
| | |||||
* | ob_parse_package_metadata(): Return non-zero exit status on error | Patrick McDermott | 2019-03-13 | 1 | -1/+1 |
| | |||||
* | ob_parse_package_metadata(): Eliminate caching | Patrick McDermott | 2019-03-13 | 1 | -55/+0 |
| | | | | Cf. commit da45b6d. | ||||
* | Don't let libopkbuild errors cause exit with -e | Patrick McDermott | 2019-03-13 | 1 | -8/+8 |
| | |||||
* | ob_substvars(), ob_init_package(): Call _ob_error_msg() | Patrick McDermott | 2019-03-13 | 1 | -1/+1 |
| | |||||
* | libopkbuild: Abort on invalid function arguments | Patrick McDermott | 2019-03-13 | 1 | -86/+31 |
| | | | | | | | | | | 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. | ||||
* | lib/package.sh: Update copyright years | Patrick McDermott | 2019-03-12 | 1 | -1/+1 |
| | |||||
* | ob_get_binary_packages(): Drop echo along with unnecessary assignment | Patrick McDermott | 2019-03-12 | 1 | -4/+2 |
| | |||||
* | ob_get_binary_packages(), _ob_set_binary_parameter(): Replace echo and grep ↵ | Patrick McDermott | 2019-03-12 | 1 | -9/+10 |
| | | | | with case | ||||
* | ob_get_binary_packages(): Fix indentation | Patrick McDermott | 2019-03-12 | 1 | -2/+2 |
| | |||||
* | lib/control.sh, lib/package.sh: Replace echo with here-document in tr commands | Patrick McDermott | 2019-03-12 | 1 | -13/+33 |
| | |||||
* | *ob_[gs]et_*_parameter(): Make validation more immediately clear | Patrick McDermott | 2019-03-12 | 1 | -20/+12 |
| | |||||
* | _ob_set_*_parameter(): Don't expand escaped value early in eval | Patrick McDermott | 2019-03-12 | 1 | -8/+2 |
| | |||||
* | ob_get_*_parameter(): Drop echo and improve quotes in eval cmds | Patrick McDermott | 2019-03-12 | 1 | -2/+2 |
| | |||||
* | Use (or plan to use) _ob_warn_msg() | Patrick McDermott | 2019-03-11 | 1 | -13/+3 |
| | |||||
* | libopkbuild: Move function definitions before points of use | Patrick McDermott | 2018-12-25 | 1 | -12/+12 |
| | |||||
* | libopkbuild: Update header comments, copyright years, & license | Patrick McDermott | 2018-12-24 | 1 | -9/+9 |
| | |||||
* | libopkbuild: Initialize OPTIND before getopts | Patrick McDermott | 2018-12-24 | 1 | -0/+2 |
| | | | | | See commit 0f5caf14a3124c24f38f340fd6504532f07d9617 for more information. | ||||
* | libopkbuild: Drop include guards | Patrick McDermott | 2018-12-22 | 1 | -3/+0 |
| | |||||
* | ob_use(): Remove | Patrick McDermott | 2018-12-22 | 1 | -4/+0 |
| | |||||
* | ob_get_binary_packages(): Use printf not echo | P. J. McDermott | 2014-09-21 | 1 | -1/+1 |
| | |||||
* | lib/*.sh, lib/*/*.sh: Add ".sh" to header comment. | P. J. McDermott | 2013-08-18 | 1 | -1/+1 |
| | |||||
* | lib/*.sh, lib/*/*.sh: Rewrite include guards. | P. J. McDermott | 2013-08-18 | 1 | -2/+2 |
| | | | | This is one step toward adding `set -u` to opkbuild. | ||||
* | lib/package.sh: Remove _ob_local. | P. J. McDermott | 2013-08-18 | 1 | -176/+151 |
| | |||||
* | Reduce platforms in ob_get_binary_packages(). | P. J. McDermott | 2012-11-05 | 1 | -2/+11 |
| |