diff options
-rw-r--r-- | lib/index.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/index.sh b/lib/index.sh index 0320f75..289cb78 100644 --- a/lib/index.sh +++ b/lib/index.sh @@ -97,15 +97,27 @@ update_feeds() # For each suite: for suite_dirent in "${archive}/feeds/.db/"*_*/; do + if [ ! -d "${suite_dirent}" ]; then + continue + fi # For each archplat: for archplat_dirent in "${suite_dirent}/"*_*/; do + if [ ! -d "${archplat_dirent}" ]; then + continue + fi # For each section: for sect_direct in "${archplat_dirent}/"*/; do + if [ ! -d "${sect_dirent}" ]; then + continue + fi # Get the feed path from the index path. feed="$(printf '%s\n' "${sect_dirent}" | \ sed "${script}")" # For each package name hash: for hash_dirent in "${sect_dirent}/"*; do + if [ ! -d "${hash_dirent}" ]; then + continue + fi idx="${feed}/.db/${hash_dirent##*/}" # Ensure there are still packages here. if [ -d "${idx}/info" ]; then |