summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <chutzpah@gentoo.org>2016-03-22 13:27:56 -0700
committerPatrick McLean <chutzpah@gentoo.org>2016-03-22 13:27:56 -0700
commitb3f0eeff524978c48fb29b3d99ad1c22f9570584 (patch)
treeb52aded6ac3f9b5ec9023b3586af1c9da8a4b2b7 /dev-vcs/git
parentnet-misc/chrome-remote-desktop: mark 49.0.2623.40 stable for all (diff)
downloadgentoo-b3f0eeff524978c48fb29b3d99ad1c22f9570584.tar.gz
gentoo-b3f0eeff524978c48fb29b3d99ad1c22f9570584.tar.bz2
gentoo-b3f0eeff524978c48fb29b3d99ad1c22f9570584.zip
dev-vcs/git: Don't try to remove nonexistant directories with USE=-nls
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-vcs/git')
-rw-r--r--dev-vcs/git/git-2.7.4.ebuild4
1 files changed, 3 insertions, 1 deletions
diff --git a/dev-vcs/git/git-2.7.4.ebuild b/dev-vcs/git/git-2.7.4.ebuild
index 06a2a18f46f..a46fe25640b 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
}