summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-07-27 20:02:32 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-07-27 20:02:32 (EDT)
commitae79e8bba0414d28cc9845273aa09a9a36f4ab36 (patch)
treeaa96ef90948165ab33818aaf8d21b2c5efc15724
parent5c23bd10663f99105ae9aed35c65c5a4cd897fb5 (diff)
update_feeds(): Fix this crap.
-rw-r--r--lib/index.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/index.sh b/lib/index.sh
index e555b4a..57ace59 100644
--- a/lib/index.sh
+++ b/lib/index.sh
@@ -108,7 +108,7 @@ update_feeds()
continue
fi
# For each section:
- for sect_direct in "${archplat_dirent}/"*/; do
+ for sect_dirent in "${archplat_dirent}/"*/; do
if [ ! -d "${sect_dirent}" ]; then
continue
fi
@@ -117,7 +117,7 @@ update_feeds()
sed "${script}")"
# For each package name hash:
for hash_dirent in "${sect_dirent}/"*; do
- if [ ! -d "${hash_dirent}" ]; then
+ if [ ! -f "${hash_dirent}" ]; then
continue
fi
idx="${feed}/.db/${hash_dirent##*/}"