sys-devel/gdb: fix build with USE=-nls
authorStephen L Arnold <nerdboy@gentoo.org>
Wed, 11 Oct 2017 21:39:20 +0000 (14:39 -0700)
committerStephen L Arnold <nerdboy@gentoo.org>
Wed, 11 Oct 2017 21:40:10 +0000 (14:40 -0700)
* add f to rm -r for when locale dir is not there

Package-Manager: Portage-2.3.11, Repoman-2.3.3

sys-devel/gdb/gdb-8.0.1.ebuild

index 82cbc96263c070164349f704f1a35c8bc536d2b4..6e1aa11c9e28a960696befdcc17b16f29940147c 100644 (file)
@@ -178,7 +178,7 @@ src_test() {
 }
 
 src_install() {
-       if use server && ! use client; then 
+       if use server && ! use client; then
                cd gdb/gdbserver || die
        fi
        default
@@ -197,7 +197,7 @@ src_install() {
 
        # Don't install docs when building a cross-gdb
        if [[ ${CTARGET} != ${CHOST} ]] ; then
-               rm -r "${ED}"/usr/share/{doc,info,locale} || die
+               rm -rf "${ED}"/usr/share/{doc,info,locale} || die
                local f
                for f in "${ED}"/usr/share/man/*/* ; do
                        if [[ ${f##*/} != ${CTARGET}-* ]] ; then