From cb28688fac4e297442cba820391acb495a5a87e6 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 16 Jul 2013 18:06:44 -0400 Subject: include: Fix call to cmd_generate_index(). --- (limited to 'lib/cmd') 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() -- cgit v0.9.1