media-sound/xmms2: handle case of no man pages installed

Reported-by: Toralf Förster
Closes: https://bugs.gentoo.org/749312
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
This commit is contained in:
Sergei Trofimovich
2020-10-16 00:05:06 +01:00
parent 1d8e3b78f1
commit 2d82c46997

View File

@@ -308,8 +308,11 @@ src_install() {
# to avoid code changed let's just un-gzip manpages
local m
for m in "${ED}"/usr/share/man/man1/*.gz; do
einfo "Uncompressing '${m#${ED}}' back."
gzip -d "${m}" || die
# For some combination of USEs no mans are installed.
if [[ -f $m ]]; then
einfo "Uncompressing '${m#${ED}}' back."
gzip -d "${m}" || die
fi
done
}