summaryrefslogtreecommitdiffstats
path: root/src/package
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-25 23:27:13 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-25 23:27:13 (EDT)
commit7462b8e7d1cdac4cd60ce17dbd5961cd0e709820 (patch)
treedeca89f12e8633e133ec58e94c586cfd385262e0 /src/package
parent06c13b2956e1597fd737574f605a1d883b680f5e (diff)
src/package/2.sh: Shift function arguments
Diffstat (limited to 'src/package')
-rw-r--r--src/package/2.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/package/2.sh b/src/package/2.sh
index ccccff3..4fa4286 100644
--- a/src/package/2.sh
+++ b/src/package/2.sh
@@ -24,6 +24,7 @@ package_2_get_build_deps()
{
local arch="${1}"
local plat="${2}"
+ shift 2
package_2_build_deps=''
parse_control "${package_dir}/control" \
@@ -39,6 +40,7 @@ package_2_build_deps_field_cb()
{
local name="${1}"
local value="${2}"
+ shift 2
name="$(printf '%s\n' "${name}" | tr 'A-Z' 'a-z')"
@@ -54,6 +56,7 @@ package_2_set_substvars()
{
local arch="${1}"
local plat="${2}"
+ shift 2
if [ -f "${package_dir}/substvars" ]; then
parse_control "${package_dir}/substvars" \
@@ -70,6 +73,7 @@ package_2_substvar_cb()
{
local name="${1}"
local value="${2}"
+ shift 2
set_substvar "${name}" "${value}"