commit:     26888ba1da3948f43233ef1d3d0aed77ab1b1f66
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 15 12:27:02 2018 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Mon Jan 15 12:27:25 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26888ba1

app-portage/grs: clean up installation for USE=server

Package-Manager: Portage-2.3.13, Repoman-2.3.3

 app-portage/grs/grs-9999.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/app-portage/grs/grs-9999.ebuild b/app-portage/grs/grs-9999.ebuild
index 1002b8a73cb..210fdb352dd 100644
--- a/app-portage/grs/grs-9999.ebuild
+++ b/app-portage/grs/grs-9999.ebuild
@@ -54,6 +54,8 @@ src_install() {
        distutils-r1_src_install
        echo "CONFIG_PROTECT=\"/etc/grs/systems.conf\"" > "${T}"/20grs
        doenvd "${T}"/20grs
-       mkdir ${D}/usr/share/${PN}
-       use server && cp "${DISTDIR}"/${ISO} ${D}/usr/share/${PN}
+       if use server; then
+               mkdir ${D}/usr/share/${PN}
+               cp "${DISTDIR}"/${ISO} ${D}/usr/share/${PN}
+       fi
 }

Reply via email to