summaryrefslogtreecommitdiffstats
path: root/lib/cmd/include.sh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cmd/include.sh')
-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()