summaryrefslogtreecommitdiffstats
path: root/src/index.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.sh')
-rw-r--r--src/index.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/index.sh b/src/index.sh
index 6246f85..df6d1ff 100644
--- a/src/index.sh
+++ b/src/index.sh
@@ -103,7 +103,7 @@ feed_remove_package()
feed_hash_idx="${base_dir}/feeds/${chan}/${dist}/${arch}/${plat}"
feed_hash_idx="${feed_hash_idx}/${sect}/.db/${pkg_hash}"
rm -f "${feed_hash_idx}/info/${pkg}.control"
- try_rmdir "${feed_hash_idx}/info"
+ try_rmdir "${feed_hash_idx}/info" || :
# Mark feed index fragment as outdated.
old_dir="${base_dir}/feeds/.db/${chan}_${dist}/${arch}_${plat}"
@@ -199,11 +199,11 @@ update_feeds()
"${sect}/Packages.gz"
fi
rmdir "${sect_dirent}"
- try_rmdir "${sect}"
+ try_rmdir "${sect}" || :
done
rmdir "${archplat_dirent}"
- try_rmdir "${archplat}"
- try_rmdir "${archplat%/*}"
+ try_rmdir "${archplat}" || :
+ try_rmdir "${archplat%/*}" || :
done
rmdir "${suite_dirent}"
exec 3>&-