From a1687c92dc693d4a1931d02ae546bd27203eb647 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 16 Jul 2013 15:36:21 -0400 Subject: include: Make a pool database. --- diff --git a/lib/cmd/include.sh b/lib/cmd/include.sh index 04accc1..aa8d16b 100644 --- a/lib/cmd/include.sh +++ b/lib/cmd/include.sh @@ -40,6 +40,7 @@ cmd_include_main() local component= local source_l= local pool_dir= + local pool_dist_db= local feed= archive='archive' @@ -69,12 +70,20 @@ cmd_include_main() source_l="$(printf '%s\n' "${cmd_include_source}" | \ sed 's/\(.\).*/\1/')" pool_dir="pool/${component}/${source_l}/${cmd_include_source}" - mkdir -p "${archive}/${pool_dir}" + pool_dist_db="${archive}/${pool_dir}/.db" + pool_dist_db="${pool_dist_db}/${cmd_include_distribution}" + mkdir -p "${pool_dist_db}" + printf '%s\n' "${cmd_include_version}" \ + >"${pool_dist_db}/version" + printf '%s\n' "${pool_dir}/${file}" \ + >>"${pool_dist_db}/files" cp -p "$(dirname "${changes}")/${file}" \ "${archive}/${pool_dir}/${file}" feed="${conf_incoming_channel}/${cmd_include_distribution}" feed="${feed}/${component}/${plat}/${arch}" mkdir -p "${archive}/dists/${feed}/.db/" + printf '%s\n' "${plat}/${arch}" \ + >>"${pool_dist_db}/feeds" tar -xzOf "${archive}/${pool_dir}/${file}" 'control.tar.gz' | \ tar -xzO './control' \ >"${archive}/dists/${feed}/.db/${pkg}.control" -- cgit v0.9.1