summaryrefslogtreecommitdiffstats
path: root/lib/package
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-01-05 10:53:01 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-01-05 10:53:01 (EST)
commit837d2a8ad902052d20e2729e7e505d95a593f3b8 (patch)
tree4710c6c97f2d9b3acef3553e42da9bae4c243068 /lib/package
parentddf9028ac7a32f5ac54099e341b059b62da46915 (diff)
ob_parse_control(): Pass field name and value as args
Diffstat (limited to 'lib/package')
-rw-r--r--lib/package/2.sh19
1 files changed, 15 insertions, 4 deletions
diff --git a/lib/package/2.sh b/lib/package/2.sh
index c1c37d5..4ca7346 100644
--- a/lib/package/2.sh
+++ b/lib/package/2.sh
@@ -69,7 +69,11 @@ _ob_get_binary_packages_2()
_ob_srcfield_2()
{
- _ob_set_source_parameter "${OB_CONTROL_NAME}" "${OB_CONTROL_VALUE}"
+ local name="${1}"
+ local value="${2}"
+ shift 2
+
+ _ob_set_source_parameter "${name}" "${value}"
return 0
}
@@ -89,8 +93,11 @@ _ob_change_2()
_ob_binfield_2()
{
- _ob_set_binary_parameter "${_OB_CURRENT_PACKAGE_2}" "${OB_CONTROL_NAME}" \
- "${OB_CONTROL_VALUE}"
+ local name="${1}"
+ local value="${2}"
+ shift 2
+
+ _ob_set_binary_parameter "${_OB_CURRENT_PACKAGE_2}" "${name}" "${value}"
return 0
}
@@ -163,7 +170,11 @@ _ob_set_package_substvars_2()
_ob_substvar_2()
{
- ob_set_substvar "${OB_CONTROL_NAME}" "${OB_CONTROL_VALUE}"
+ local name="${1}"
+ local value="${2}"
+ shift 2
+
+ ob_set_substvar "${name}" "${value}"
return 0
}