commit:     d6beae6e7da83ab630a6588f8a756a1735a27701
Author:     Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
AuthorDate: Mon May 25 17:25:49 2015 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Wed May 27 12:07:04 2015 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=d6beae6e

[kde-apps/kde4-l10n] Improve legacy messages handling

Package-Manager: portage-2.2.18

 kde-apps/kde4-l10n/kde4-l10n-15.04.1.ebuild | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/kde-apps/kde4-l10n/kde4-l10n-15.04.1.ebuild 
b/kde-apps/kde4-l10n/kde4-l10n-15.04.1.ebuild
index 9833f20..8f5a8c4 100644
--- a/kde-apps/kde4-l10n/kde4-l10n-15.04.1.ebuild
+++ b/kde-apps/kde4-l10n/kde4-l10n-15.04.1.ebuild
@@ -82,6 +82,9 @@ src_prepare() {
                                # Drop translations that get installed with 
plasma 5 and kde apps 5 packages
                                if use minimal; then
                                        einfo "Removing paths from ${LNG}"
+                                       if [[ -d "${KMNAME}-${LNG}-${LV}" ]] ; 
then
+                                               rm -rf "${KMNAME}-${LNG}-${LV}"
+                                       fi
 
                                        # Remove dirs
                                        while read path; do
@@ -99,8 +102,10 @@ src_prepare() {
                                else
                                        if [[ -d "${KMNAME}-${LNG}-${LV}" ]] ; 
then
                                                # Merge legacy localisation
-                                               find "${KMNAME}-${LNG}-${LV}" 
-name "*.po" | while read file; \
-                                                       do cp -rn "${file}" 
"${file/${LV}/${PV}/4/${LNG}}"; done
+                                               for path in $(find 
"${KMNAME}-${LNG}-${LV}" -name "*.po"); do
+                                                       cp -rn "${path}" 
"${path/${LV}/${PV}/4/${LNG}}" || die
+                                               done
+                                               rm -rf "${KMNAME}-${LNG}-${LV}"
                                        fi
                                fi
                        fi

Reply via email to