summaryrefslogtreecommitdiffstats
path: root/lib/cmd
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-07-16 18:06:44 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-07-16 18:06:44 (EDT)
commitcb28688fac4e297442cba820391acb495a5a87e6 (patch)
tree9ed2a7d8e19596d86e838da70c952618731ea200 /lib/cmd
parentd96921bb4baf800a4dc75674a76fb94f02a0730a (diff)
include: Fix call to cmd_generate_index().
Diffstat (limited to 'lib/cmd')
-rw-r--r--lib/cmd/include.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/cmd/include.sh b/lib/cmd/include.sh
index 33eb5e9..6357bca 100644
--- a/lib/cmd/include.sh
+++ b/lib/cmd/include.sh
@@ -52,6 +52,7 @@ cmd_include()
local source_l=
local pool_dir=
local pool_dist_db=
+ local archplats=
local size=
local file=
local pkg=
@@ -69,6 +70,7 @@ cmd_include()
pool_dir="pool/${component}/${source_l}/${cmd_include_source}"
pool_dist_db="${archive}/${pool_dir}/.db"
pool_dist_db="${pool_dist_db}/${cmd_include_distribution}"
+ archplats=''
cmd_include_feeds=''
if [ -f "${pool_dist_db}/version" \
-a "x$(cat "${pool_dist_db}/version")" \
@@ -95,7 +97,8 @@ cmd_include()
"${archive}/${pool_dir}/${file}"
feed="${suite}/${component}/${plat}/${arch}"
mkdir -p "${archive}/dists/${feed}/.db/"
- cmd_include_feeds="${cmd_include_feeds}${plat}/${arch}${LF}"
+ archplats="${archplats}${plat}/${arch}${LF}"
+ cmd_include_feeds="${cmd_include_feeds}${feed}${LF}"
tar -xzOf "${archive}/${pool_dir}/${file}" \
'control.tar.gz' | tar -xzO './control' \
>"${archive}/dists/${feed}/.db/${pkg}.control"
@@ -108,8 +111,8 @@ cmd_include()
done <<-EOF
${cmd_include_files}
EOF
- printf '%s' "${cmd_include_feeds}" | LC_COLLATE='C' sort | uniq \
- >"${pool_dist_db}/feeds"
+ printf '%s' "${archplats}" | LC_COLLATE='C' sort | uniq \
+ >"${pool_dist_db}/archplat"
}
cmd_include_changes_field()