summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2020-12-08 01:57:33 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2020-12-08 01:57:33 (EST)
commit7100eb7de881fe58454f19913c5444a26eb4f167 (patch)
tree4de24e3116d3584865d1d4c962270f76525724df /src
parent1af95b30a2e88083e2cc739f259be8feb9038881 (diff)
ob-gencontrol: Normalize B-D field spacing
Diffstat (limited to 'src')
-rw-r--r--src/ob-gencontrol.sh13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/ob-gencontrol.sh b/src/ob-gencontrol.sh
index 5a8aa40..1c0da12 100644
--- a/src/ob-gencontrol.sh
+++ b/src/ob-gencontrol.sh
@@ -67,6 +67,8 @@ gen_control_src()
local binary=
local name=
local value=
+ local deps=
+ local dep=
local homepage=
binary="src:${OPK_SOURCE}"
@@ -91,8 +93,15 @@ gen_control_src()
if [ -z "${value}" ]; then
continue
fi
- value="$(ob_substvars "${value}")"
- printf '%s: %s\n' "${name}" "${value}" | sed 's/[, ]*$//' >&3
+ deps=''
+ IFS=','
+ for dep in ${value}; do
+ unset IFS
+ deps="${deps}$(ob_parse_dep "${dep}"), "
+ done
+ unset IFS
+ value="$(ob_substvars "${deps}")"
+ printf '%s: %s\n' "${name}" "${deps}" | sed 's/[, ]*$//' >&3
done
cat >&3 <<-EOF