summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* ob_error(): Fix documentation (doesn't exit)Patrick McDermott2024-02-211-3/+3
| | | | | Also note that ob_error()'s "Error:" and ob_warn()'s "Warning:" may be translated.
* metadata, package: Encode binary package namesPatrick McDermott2023-09-254-25/+36
| | | | Remove restriction on duplicate "clean" names.
* metadata/proteanos: Allow epochs in versionsPatrick McDermott2021-01-081-0/+1
|
* ob_*_gmtime(): Don't freeze on New Year's DayPatrick McDermott2021-01-021-1/+1
| | | | | And add test cases to confirm the resolution of this bug and the one fixed by commit 83bee70f80d8c98b875c943297b0049eae7d6d22.
* Update copyright yearsPatrick McDermott2020-12-082-2/+2
|
* ob_parse_dep(): Fix documentationPatrick McDermott2020-12-081-1/+1
|
* ob_*_gmtime(): Don't freeze in DecemberPatrick McDermott2020-12-061-0/+1
|
* ob_init_package(): Defend against CDPATH in BashPatrick McDermott2020-07-051-1/+1
| | | | Why does Bash insist on breaking standard things?
* _ob_parse_package_metadata_2(): Validate sections only if presentPatrick McDermott2020-07-051-1/+1
|
* ob_get_binary_packages(): Factor out side effectsPatrick McDermott2020-07-051-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(): RemovePatrick McDermott2020-07-052-20/+4
| | | | | | | _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 sectionPatrick McDermott2020-07-052-7/+7
| | | | | On ob_get_binary_packages()'s first run, binary package control files haven't yet been parsed.
* ob_get_binary_packages(): Validate sectionPatrick McDermott2020-07-051-1/+7
|
* ob_validate_section(): New functionPatrick McDermott2020-07-052-0/+32
|
* ob_qualify_package_name(): New functionPatrick McDermott2020-06-212-0/+41
|
* ob-gencontrol: Generate a "Section" fieldPatrick McDermott2020-06-171-1/+1
| | | | And add it to SPF 2.x.
* ob-gencontrol: Generate a "Format" fieldPatrick McDermott2020-06-131-1/+7
| | | | And add the needed support to ob_get_source_parameter().
* metadata/proteanos: Allow backport versionsPatrick McDermott2019-08-041-0/+2
|
* metadata/proteanos: Relax <pkgrev> requirementsPatrick McDermott2019-08-041-1/+1
|
* ob_set_binary_substvar(), ob_substvars(): Improve "clean" namingPatrick McDermott2019-06-241-2/+3
|
* ob_get_binary_packages(), *ob_*_binary_parameter(): Improve "clean" namingPatrick McDermott2019-06-241-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_gmtime(): Fix numbers being interpreted in octalPatrick McDermott2019-06-181-1/+1
|
* ob_rfc822_mktime(), ob_*_gmtime(): Add "(3)" to C function manual referencesPatrick McDermott2019-06-181-7/+7
|
* ob_touch_t_gmtime(): New functionPatrick McDermott2019-06-181-0/+21
|
* ob_iso8601_gmtime(): Factor out common gmtime codePatrick McDermott2019-06-181-13/+22
|
* ob_get_system_path(): Allow overriding DATADIRPatrick McDermott2019-06-172-5/+15
|
* ob_get_system_path(): Allow package-less platconfPatrick McDermott2019-06-162-3/+9
|
* ob_iso8601_gmtime(): Fix dates after leap daysPatrick McDermott2019-06-161-1/+1
|
* ob_rfc822_mktime(): Drop "+" TZ signPatrick McDermott2019-06-161-1/+2
|
* ob_rfc822_mktime(): Parse monthPatrick McDermott2019-06-151-1/+17
|
* ob_rfc822_mktime(): Fix parsingPatrick McDermott2019-06-151-2/+6
|
* lib/time.sh: New filePatrick McDermott2019-06-152-1/+164
|
* _ob_parse_control_error(): Make arg vars localPatrick McDermott2019-04-231-3/+3
|
* ob_set_*_substvar(), ob_substvars(): Use lowercase eval varsPatrick McDermott2019-04-231-14/+14
|
* metadata/proteanos: Allow "+" and forbid "-" in upstream versionsPatrick McDermott2019-04-031-1/+1
|
* ob_set_binary_substvar(), ob_substvars(): Clean up binary package namesPatrick McDermott2019-04-021-0/+5
| | | | | Fixes substvars for binary packages with non-alphanumeric characters in their names.
* ob_set_package_substvars(): Update @operand doc cmdPatrick McDermott2019-03-181-2/+1
|
* ob_parse_control(): Shift optional argumentsPatrick McDermott2019-03-181-0/+1
|
* ob_substvars(): Save untranslated var name for warning messagePatrick McDermott2019-03-181-6/+7
|
* ob_substvars(): Replace here-document with printfPatrick McDermott2019-03-181-4/+1
|
* ob_substvars(): Make package operand optionalPatrick McDermott2019-03-181-4/+12
|
* _ob_set_package_substvars_2(): Parse binary package substvarsPatrick McDermott2019-03-181-10/+33
|
* ob_substvars(): Substitute binary package varsPatrick McDermott2019-03-181-3/+16
|
* ob_set_binary_substvar(): New functionPatrick McDermott2019-03-181-0/+34
|
* ob_set_source_substvar(), ob_substvars(): Rename eval'ed varPatrick McDermott2019-03-181-2/+2
|
* ob_set_source_substvar(): Make sed script a global varPatrick McDermott2019-03-181-9/+10
|
* ob_set_source_substvar(): Replace here-documents with printfPatrick McDermott2019-03-181-9/+3
|
* _ob_substvar_2(): Define above usagePatrick McDermott2019-03-181-12/+12
|
* ob_set_substvar(): Rename to ob_set_source_substvar()Patrick McDermott2019-03-182-11/+14
|
* Delimit operands of ob_parse_version()Patrick McDermott2019-03-182-2/+3
|