summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gentoo.org>2019-04-24 10:23:17 -0700
committerMatt Turner <mattst88@gentoo.org>2019-04-24 10:24:26 -0700
commit5ff8e344519b37953c29fd1fe70b4b7b4a43f459 (patch)
treeb7c4b6443c8b35c898973a604e540bb25fac717e /eclass/xorg-3.eclass
parentdev-python/pytest: bump to 4.4.1 (diff)
downloadgentoo-5ff8e344519b37953c29fd1fe70b4b7b4a43f459.tar.gz
gentoo-5ff8e344519b37953c29fd1fe70b4b7b4a43f459.tar.bz2
gentoo-5ff8e344519b37953c29fd1fe70b4b7b4a43f459.zip
xorg-3.eclass: Don't delete man pages if XORG_DOC=doc is missing
There's an eqawarn to warn us about this case a few lines above, but in case we forget, don't delete the man pages. Suggested by Arfrever. Bug: https://bugs.gentoo.org/595936 Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'eclass/xorg-3.eclass')
-rw-r--r--eclass/xorg-3.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/xorg-3.eclass b/eclass/xorg-3.eclass
index f8e6e8b0d01d..760e41462d7d 100644
--- a/eclass/xorg-3.eclass
+++ b/eclass/xorg-3.eclass
@@ -372,7 +372,7 @@ xorg-3_src_install() {
! in_iuse doc && eqawarn "ebuild should set XORG_DOC=doc since package installs library documentation"
fi
- if ! use_if_iuse doc; then
+ if in_iuse doc && ! use doc; then
rm -rf "${D}"/usr/share/man/man3
fi