summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorFlorian Schmaus <flow@gentoo.org>2024-04-05 18:04:13 +0200
committerFlorian Schmaus <flow@gentoo.org>2024-04-05 18:04:13 +0200
commitac957bc00b6bdc98a12d9164609b901ccb04e7b4 (patch)
tree24ce9bb6c8b758066c5706e6dd4028c25941eb99 /eclass
parentapp-emulation/xen-tools: drop 4.16.6_pre2, 4.17.3 (diff)
downloadgentoo-ac957bc00b6bdc98a12d9164609b901ccb04e7b4.tar.gz
gentoo-ac957bc00b6bdc98a12d9164609b901ccb04e7b4.tar.bz2
gentoo-ac957bc00b6bdc98a12d9164609b901ccb04e7b4.zip
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>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/texlive-common.eclass10
1 files changed, 6 insertions, 4 deletions
diff --git a/eclass/texlive-common.eclass b/eclass/texlive-common.eclass
index 66d3999bd103..b32ea2af1121 100644
--- a/eclass/texlive-common.eclass
+++ b/eclass/texlive-common.eclass
@@ -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}"