texlive-common_update_tlpdb: only run find if tlpobj dir exists

Closes: https://bugs.gentoo.org/928638
Closes: https://bugs.gentoo.org/928639
Closes: https://bugs.gentoo.org/928640
Closes: https://bugs.gentoo.org/928641
Closes: https://bugs.gentoo.org/928642
Closes: https://bugs.gentoo.org/928643
Closes: https://bugs.gentoo.org/928644
Closes: https://bugs.gentoo.org/928645
Signed-off-by: Florian Schmaus <flow@gentoo.org>
This commit is contained in:
Florian Schmaus
2024-04-05 18:04:13 +02:00
parent bb06f7878c
commit ac957bc00b

View File

@@ -269,10 +269,12 @@ texlive-common_update_tlpdb() {
touch "${new_tlpdb}" || die
find "${tlpobj}" -maxdepth 1 -type f -name "*.tlpobj" -print0 |
sort -z |
xargs -0 --no-run-if-empty cat >> "${new_tlpdb}"
assert "generating tlpdb failed"
if [[ -d "${tlpobj}" ]]; then
find "${tlpobj}" -maxdepth 1 -type f -name "*.tlpobj" -print0 |
sort -z |
xargs -0 --no-run-if-empty cat >> "${new_tlpdb}"
assert "generating tlpdb failed"
fi
if [[ -f ${tlpdb} ]]; then
cmp -s "${new_tlpdb}" "${tlpdb}"