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.sh11
1 files changed, 10 insertions, 1 deletions
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"