diff options
Diffstat (limited to 'lib/index.sh')
-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 |