summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-08-15 12:07:45 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-08-15 12:07:45 (EDT)
commite8e064555eee74b80aa96371cf35cb2cd18b9c1b (patch)
treea734843fd0361734fa7f3f696432c52109a40dfb
parent081396dc341061b9b88e1dd58e3107b85d79fb72 (diff)
Reverse arch and plat in feeds paths.
-rw-r--r--lib/index.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/index.sh b/lib/index.sh
index 5b6cdb9..2bd6a0e 100644
--- a/lib/index.sh
+++ b/lib/index.sh
@@ -36,7 +36,7 @@ feed_add_package()
pkg_hash="$(hash_name "${pkg}")"
# Add package metadata to feed hash index.
- feed_hash_idx="${opt_base_dir}/feeds/${chan}/${dist}/${plat}/${arch}"
+ feed_hash_idx="${opt_base_dir}/feeds/${chan}/${dist}/${arch}/${plat}"
feed_hash_idx="${feed_hash_idx}/${sect}/.db/${pkg_hash}"
mkdir -p "${feed_hash_idx}/info"
tar -xzOf "${opt_base_dir}/${file}" 'control.tar.gz' | \
@@ -70,7 +70,7 @@ feed_remove_package()
pkg_hash="$(hash_name "${pkg}")"
# Remove package metadata from feed hash index.
- feed_hash_idx="${opt_base_dir}/feeds/${chan}/${dist}/${plat}/${arch}"
+ feed_hash_idx="${opt_base_dir}/feeds/${chan}/${dist}/${arch}/${plat}"
feed_hash_idx="${feed_hash_idx}/${sect}/.db/${pkg_hash}"
rm -f "${feed_hash_idx}/info/${pkg}.control"
try_rmdir "${feed_hash_idx}/info"
@@ -118,7 +118,7 @@ update_feeds()
plat="${plat##*/}"
arch="${plat##*_}"
plat="${plat%_*}"
- archplat="${suite}/${plat}/${arch}"
+ archplat="${suite}/${arch}/${plat}"
# For each section:
for sect_dirent in "${archplat_dirent}/"*/; do
if [ ! -d "${sect_dirent}" ]; then