From 507ee4bea715bf5acda72a5fad1277f94b6da24e Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 16 Jul 2013 17:02:57 -0400 Subject: include: Update indices. --- (limited to 'lib') 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" } -- cgit v0.9.1