From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1SBr0I-0003WK-Oc for garchives@archives.gentoo.org; Sun, 25 Mar 2012 17:13:18 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E8128E02FB; Sun, 25 Mar 2012 17:13:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B530EE02F0 for ; Sun, 25 Mar 2012 17:13:11 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EF80A1B403E for ; Sun, 25 Mar 2012 17:13:10 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id B2EADE5402 for ; Sun, 25 Mar 2012 17:13:09 +0000 (UTC) From: "Davide Pesavento" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Davide Pesavento" Message-ID: <1332695524.338b6cac2730d05ea06ef2d48c71c0ddb2d780ce.pesa@gentoo> Subject: [gentoo-commits] proj/qt:master commit in: eclass/ X-VCS-Repository: proj/qt X-VCS-Files: eclass/qt4-edge.eclass X-VCS-Directories: eclass/ X-VCS-Committer: pesa X-VCS-Committer-Name: Davide Pesavento X-VCS-Revision: 338b6cac2730d05ea06ef2d48c71c0ddb2d780ce X-VCS-Branch: master Date: Sun, 25 Mar 2012 17:13:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 1f50def8-499c-43ad-af75-db491ff29444 X-Archives-Hash: 9011e92c0a3d681091dd6c515f62759f commit: 338b6cac2730d05ea06ef2d48c71c0ddb2d780ce Author: Davide Pesavento gmail com> AuthorDate: Sun Mar 25 17:12:04 2012 +0000 Commit: Davide Pesavento gentoo org> CommitDate: Sun Mar 25 17:12:04 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/qt.git;a=3Dco= mmit;h=3D338b6cac [qt4-edge.eclass] _do_qm(): use insinto instead of INSDESTTREE. --- eclass/qt4-edge.eclass | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/eclass/qt4-edge.eclass b/eclass/qt4-edge.eclass index 58bbea0..eb591bc 100644 --- a/eclass/qt4-edge.eclass +++ b/eclass/qt4-edge.eclass @@ -83,15 +83,16 @@ _do_qm() { [[ $# -ne 2 ]] && die "$FUNCNAME requires exactly 2 arguments!" =20 local transfile=3D"$(find "${1}" -type f -name "*${2}".qm)" - if [[ -e ${transfile} ]]; then - INSDESTTREE=3D"/usr/share/${PN}/${1#${S}}" \ - doins "${transfile}" \ - || die "failed to install ${2} translation" + if [[ -f ${transfile} ]]; then + ( + insinto /usr/share/${PN}/"${1#${S}}" + doins "${transfile}" + ) || die "failed to install ${2} translation" else eerror - eerror "Failed to install ${2} translation. Contact eclass maintainer.= " + eerror "Failed to install ${2} translation: file not found." eerror - die "Failed to install translations" + die "failed to install ${2} translation" fi } =20