summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-13 19:39:59 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-13 19:39:59 (EDT)
commite1e5ae15188307d55f10439431b47db0ba2b0e7d (patch)
treecef9a79cbc1d148f298baf1829819bb3608eb8eb /lib
parent7d3e71b705485c7127b820ef84102d393d4ea1e4 (diff)
ob_parse_package_metadata(): Merge into ob_init_package()
Now that caching is gone, the ob_parse_package_metadata() interface function is trivially short, and keeping it separate unnecessarily complicates the API.
Diffstat (limited to 'lib')
-rw-r--r--lib/package.sh25
1 files changed, 10 insertions, 15 deletions
diff --git a/lib/package.sh b/lib/package.sh
index 6aa7b94..c684cc5 100644
--- a/lib/package.sh
+++ b/lib/package.sh
@@ -23,6 +23,16 @@ _OB_BINARY_PACKAGES=
_OB_SOURCE_PARAMETERS=
_OB_BINARY_PARAMETERS=
+_ob_package_do()
+{
+ local func="${1}"
+ shift 1 || _ob_abort
+
+ "_ob_${func}_${_OB_PACKAGE_FORMAT}" "${@}" || return ${?}
+
+ return 0
+}
+
ob_init_package()
{
local dir="${1}"
@@ -45,21 +55,6 @@ ob_init_package()
_OB_BINARY_PACKAGES=
- return 0
-}
-
-_ob_package_do()
-{
- local func="${1}"
- shift 1 || _ob_abort
-
- "_ob_${func}_${_OB_PACKAGE_FORMAT}" "${@}" || return ${?}
-
- return 0
-}
-
-ob_parse_package_metadata()
-{
_ob_package_do 'parse_package_metadata' || return ${?}
return 0