mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
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:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user