summaryrefslogtreecommitdiffstats
path: root/lib/package
diff options
context:
space:
mode:
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
}