commit: 6da474acfd758447e7b8de64a67d38e10da588fa
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 3 16:52:25 2017 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Jun 3 16:52:25 2017 +0000
URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=6da474ac
kde5-functions.eclass: Fix KDE Plasma 5.8 LTS dependencies
eclass/kde5-functions.eclass | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/eclass/kde5-functions.eclass b/eclass/kde5-functions.eclass
index b255cc88e6..62a806fadc 100644
--- a/eclass/kde5-functions.eclass
+++ b/eclass/kde5-functions.eclass
@@ -154,10 +154,9 @@ _add_category_dep() {
if [[ -z ${operator} ]] ; then
operator=">="
fi
- if [[ ${operator} = ">=" ]] ; then
- version="-$(get_version_component_range 1-3 ${version})"
- else
- version="-${version}"
+ version="-$(get_version_component_range 1-3 ${version})"
+ if [[ ${operator} = "=" ]] ; then
+ version="${version}*"
fi
fi
@@ -229,7 +228,7 @@ add_plasma_dep() {
elif [[ ${CATEGORY} = kde-plasma ]]; then
version=${PV}
if [[ ${PV} = 5.8* ]] ; then
- operator="~"
+ operator="="
fi
elif [[ -z "${version}" ]] ; then
version=${PLASMA_MINIMAL}