summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-07-16 17:02:57 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-07-16 17:02:57 (EDT)
commit507ee4bea715bf5acda72a5fad1277f94b6da24e (patch)
treed3e827242f2f73969b32aa057d3279fd53062640 /lib
parentc85012fed1c7610a4b31b4ea62a189cae449d521 (diff)
include: Update indices.
Diffstat (limited to 'lib')
-rw-r--r--lib/cmd/include.sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/cmd/include.sh b/lib/cmd/include.sh
index e38aab8..dbd12ea 100644
--- a/lib/cmd/include.sh
+++ b/lib/cmd/include.sh
@@ -28,14 +28,21 @@ cmd_include_source=
cmd_include_version=
cmd_include_distribution=
cmd_include_files=
+cmd_include_feeds=
cmd_include_main()
{
local changes=
+ local feed=
for changes in "${@}"; do
cmd_include "${changes}"
done
+
+ for feed in "${cmd_include_feeds}"; do
+ # TODO: Remove ":" when cmd_generate_index is implemented.
+ : cmd_generate_index "${feed}"
+ done
}
cmd_include()
@@ -47,7 +54,6 @@ cmd_include()
local source_l=
local pool_dir=
local pool_dist_db=
- local feeds=
local size=
local file=
local pkg=
@@ -67,7 +73,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}"
- feeds=''
+ cmd_include_feeds=''
if [ -f "${pool_dist_db}/version" \
-a "x$(cat "${pool_dist_db}/version")" \
!= "x${cmd_include_version}" ]; then
@@ -93,7 +99,7 @@ cmd_include()
"${archive}/${pool_dir}/${file}"
feed="${suite}/${component}/${plat}/${arch}"
mkdir -p "${archive}/dists/${feed}/.db/"
- feeds="${feeds}${plat}/${arch}${LF}"
+ cmd_include_feeds="${cmd_include_feeds}${plat}/${arch}${LF}"
tar -xzOf "${archive}/${pool_dir}/${file}" \
'control.tar.gz' | tar -xzO './control' \
>"${archive}/dists/${feed}/.db/${pkg}.control"
@@ -106,7 +112,7 @@ cmd_include()
done <<-EOF
${cmd_include_files}
EOF
- printf '%s' "${feeds}" | LC_COLLATE='C' sort | uniq \
+ printf '%s' "${cmd_include_feeds}" | LC_COLLATE='C' sort | uniq \
>"${pool_dist_db}/feeds"
}