From 2227834d1a974977c1dda1098a3373ddda15bee7 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Thu, 15 Aug 2013 12:10:57 -0400 Subject: Reverse arch and plat in feeds db paths. --- diff --git a/lib/index.sh b/lib/index.sh index 2bd6a0e..af510f5 100644 --- a/lib/index.sh +++ b/lib/index.sh @@ -47,7 +47,7 @@ feed_add_package() >>"${feed_hash_idx}/info/${pkg}.control" # Mark feed index fragment as outdated. - old_dir="${opt_base_dir}/feeds/.db/${chan}_${dist}/${plat}_${arch}" + old_dir="${opt_base_dir}/feeds/.db/${chan}_${dist}/${arch}_${plat}" old_dir="${old_dir}/${sect}" mkdir -p "${old_dir}" >"${old_dir}/${pkg_hash}" @@ -76,7 +76,7 @@ feed_remove_package() try_rmdir "${feed_hash_idx}/info" # Mark feed index fragment as outdated. - old_dir="${opt_base_dir}/feeds/.db/${chan}_${dist}/${plat}_${arch}" + old_dir="${opt_base_dir}/feeds/.db/${chan}_${dist}/${arch}_${plat}" old_dir="${old_dir}/${sect}" mkdir -p "${old_dir}" >"${old_dir}/${pkg_hash}" @@ -114,10 +114,10 @@ update_feeds() if [ ! -d "${archplat_dirent}" ]; then continue fi - plat="${archplat_dirent%/}" - plat="${plat##*/}" - arch="${plat##*_}" - plat="${plat%_*}" + arch="${archplat_dirent%/}" + arch="${arch##*/}" + plat="${arch##*_}" + arch="${arch%_*}" archplat="${suite}/${arch}/${plat}" # For each section: for sect_dirent in "${archplat_dirent}/"*/; do -- cgit v0.9.1