From: Patrick McLean Date: Tue, 22 Mar 2016 20:27:56 +0000 (-0700) Subject: dev-vcs/git: Don't try to remove nonexistant directories with USE=-nls X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b3f0eeff524978c48fb29b3d99ad1c22f9570584;p=gentoo.git dev-vcs/git: Don't try to remove nonexistant directories with USE=-nls Package-Manager: portage-2.2.28 --- diff --git a/dev-vcs/git/git-2.7.4.ebuild b/dev-vcs/git/git-2.7.4.ebuild index 06a2a18f46f1..a46fe25640b7 100644 --- a/dev-vcs/git/git-2.7.4.ebuild +++ b/dev-vcs/git/git-2.7.4.ebuild @@ -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 }