dev-vcs/git: Don't try to remove nonexistant directories with USE=-nls
authorPatrick McLean <chutzpah@gentoo.org>
Tue, 22 Mar 2016 20:27:56 +0000 (13:27 -0700)
committerPatrick McLean <chutzpah@gentoo.org>
Tue, 22 Mar 2016 20:27:56 +0000 (13:27 -0700)
Package-Manager: portage-2.2.28

dev-vcs/git/git-2.7.4.ebuild

index 06a2a18f46f1374b318a5b102f03db4f2ba8da99..a46fe25640b78bb214941a4e05cf9d705b22f8dc 100644 (file)
@@ -540,7 +540,9 @@ src_install() {
        # we could remove sources in src_prepare, but install does not
        # handle missing locale dir well
        rm_loc() {
-               rm -r "${ED}/usr/share/locale/${1}" || die
+               if [[ -e "${ED}/usr/share/locale/${1}" ]]; then
+                       rm -r "${ED}/usr/share/locale/${1}" || die
+               fi
        }
        l10n_for_each_disabled_locale_do rm_loc
 }