commit:     bb9352eaa4e149475a4f2c8a34f115b9e27fe732
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Apr  5 22:11:59 2020 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Apr  8 15:38:40 2020 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=bb9352ea

kde.org.eclass: Allow to use SRC_URI in addition to live sources

Copied from qt5-build.eclass.

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 eclass/kde.org.eclass | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/eclass/kde.org.eclass b/eclass/kde.org.eclass
index 0add316baa..a2f6bd0c34 100644
--- a/eclass/kde.org.eclass
+++ b/eclass/kde.org.eclass
@@ -250,11 +250,10 @@ kde.org_pkg_nofetch() {
 kde.org_src_unpack() {
        debug-print-function ${FUNCNAME} "$@"
 
-       if [[ ${KDE_BUILD_TYPE} = live ]]; then
-               git-r3_src_unpack
-       else
-               default
-       fi
+       case ${KDE_BUILD_TYPE} in
+               live) git-r3_src_unpack ;&
+               *) default ;;
+       esac
 }
 
 fi

Reply via email to