diff options
author | P. J. McDermott <pjm@nac.net> | 2013-08-15 12:10:57 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-08-15 12:10:57 (EDT) |
commit | 2227834d1a974977c1dda1098a3373ddda15bee7 (patch) | |
tree | e8f1a0d9a87025c1d1919b886f29604da51e8810 /lib | |
parent | e8e064555eee74b80aa96371cf35cb2cd18b9c1b (diff) |
Reverse arch and plat in feeds db paths.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/index.sh | 12 |
1 files changed, 6 insertions, 6 deletions
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 |