From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3768713933E for ; Sun, 18 Jul 2021 16:55:45 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 11C5FE0CA1; Sun, 18 Jul 2021 16:55:44 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BF6BCE0B9E for ; Sun, 18 Jul 2021 16:55:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7AE2133BF02 for ; Sun, 18 Jul 2021 16:55:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E240F581 for ; Sun, 18 Jul 2021 16:55:40 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1626596305.ee2db584e3388e1c3375ff071aa3b21366b6704b.asturm@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: eclass/ X-VCS-Repository: proj/kde X-VCS-Files: eclass/kde.org.eclass X-VCS-Directories: eclass/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: ee2db584e3388e1c3375ff071aa3b21366b6704b X-VCS-Branch: master Date: Sun, 18 Jul 2021 16:55:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ca20fe25-4d4c-4086-850a-6fbdd6b23161 X-Archives-Hash: dba6934b7fb5dc8b8fa5e401dd344fca commit: ee2db584e3388e1c3375ff071aa3b21366b6704b Author: Andreas Sturmlechner gentoo org> AuthorDate: Sun Jul 18 08:00:24 2021 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Jul 18 08:18:25 2021 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=ee2db584 kde.org.eclass: Harmonise equals operator to == everywhere Signed-off-by: Andreas Sturmlechner gentoo.org> eclass/kde.org.eclass | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/eclass/kde.org.eclass b/eclass/kde.org.eclass index ee154f0aa0..0503bcf6a2 100644 --- a/eclass/kde.org.eclass +++ b/eclass/kde.org.eclass @@ -30,12 +30,12 @@ _KDE_ORG_ECLASS=1 # If PV matches "*9999*", this is automatically set to "live". # Otherwise, this is automatically set to "release". KDE_BUILD_TYPE="release" -if [[ ${PV} = *9999* ]]; then +if [[ ${PV} == *9999* ]]; then KDE_BUILD_TYPE="live" fi export KDE_BUILD_TYPE -if [[ ${KDE_BUILD_TYPE} = live ]]; then +if [[ ${KDE_BUILD_TYPE} == live ]]; then inherit git-r3 fi @@ -147,7 +147,7 @@ case ${CATEGORY} in kde-frameworks) HOMEPAGE="https://kde.org/products/frameworks/" SLOT=5/${PV} - [[ ${KDE_BUILD_TYPE} = release ]] && SLOT=$(ver_cut 1)/$(ver_cut 1-2) + [[ ${KDE_BUILD_TYPE} == release ]] && SLOT=$(ver_cut 1)/$(ver_cut 1-2) ;; *) ;; esac @@ -159,10 +159,10 @@ esac _kde.org_is_unreleased() { local pair for pair in "${KDE_UNRELEASED[@]}" ; do - if [[ "${pair}" = "${CATEGORY}-${PV}" ]]; then + if [[ "${pair}" == "${CATEGORY}-${PV}" ]]; then return 0 - elif [[ ${KDE_GEAR} = true ]]; then - if [[ "${pair/kde-apps/${CATEGORY}}" = "${CATEGORY}-${PV}" ]]; then + elif [[ ${KDE_GEAR} == true ]]; then + if [[ "${pair/kde-apps/${CATEGORY}}" == "${CATEGORY}-${PV}" ]]; then return 0 fi fi @@ -180,7 +180,7 @@ _kde.org_calculate_src_uri() { local _src_uri="mirror://kde/" - if [[ ${KDE_GEAR} = true ]]; then + if [[ ${KDE_GEAR} == true ]]; then case ${PV} in ??.??.[6-9]? ) _src_uri+="unstable/release-service/${PV}/src/" @@ -218,7 +218,7 @@ _kde.org_calculate_src_uri() { ;; esac - if [[ ${PN} = kdevelop* ]]; then + if [[ ${PN} == kdevelop* ]]; then case ${PV} in *.*.[6-9]? ) _src_uri+="unstable/kdevelop/${PV}/src/" @@ -256,19 +256,19 @@ _kde.org_calculate_live_repo() { # (anongit) with anything else you might want to use. EGIT_MIRROR=${EGIT_MIRROR:=https://invent.kde.org/${KDE_ORG_CATEGORY}} - if [[ ${PV} == ?.??.9999 && ${CATEGORY} = dev-qt ]]; then + if [[ ${PV} == ?.??.9999 && ${CATEGORY} == dev-qt ]]; then EGIT_BRANCH="kde/$(ver_cut 1-2)" fi - if [[ ${PV} == ??.??.49.9999 && ${KDE_GEAR} = true ]]; then + if [[ ${PV} == ??.??.49.9999 && ${KDE_GEAR} == true ]]; then EGIT_BRANCH="release/$(ver_cut 1-2)" fi - if [[ ${PV} != 9999 && ${CATEGORY} = kde-plasma ]]; then + if [[ ${PV} != 9999 && ${CATEGORY} == kde-plasma ]]; then EGIT_BRANCH="Plasma/$(ver_cut 1-2)" fi - if [[ ${PV} != 9999 && ${PN} = kdevelop* ]]; then + if [[ ${PV} != 9999 && ${PN} == kdevelop* ]]; then EGIT_BRANCH="$(ver_cut 1-2)" fi @@ -308,7 +308,7 @@ kde.org_pkg_nofetch() { kde-frameworks) sched_uri+="/Frameworks" ;; kde-plasma) sched_uri+="/Plasma_5" ;; *) - [[ ${KDE_GEAR} = true ]] && + [[ ${KDE_GEAR} == true ]] && sched_uri+="/KDE_Gear_$(ver_cut 1-2)_Schedule" ;; esac