media-tv/kodi: Fix overzealous Python 3 warning
authorCraig Andrews <candrews@gentoo.org>
Mon, 19 Nov 2018 20:17:46 +0000 (15:17 -0500)
committerCraig Andrews <candrews@gentoo.org>
Mon, 19 Nov 2018 20:17:46 +0000 (15:17 -0500)
Package-Manager: Portage-2.3.51, Repoman-2.3.12
Signed-off-by: Craig Andrews <candrews@gentoo.org>
media-tv/kodi/kodi-9999.ebuild

index 9994cd976c357893e6877d6dddf9089152bfe0fb..3fc94b17ea843ce1f8e5529971b7d719ab97804a 100644 (file)
@@ -175,12 +175,14 @@ pkg_setup() {
 }
 
 src_unpack() {
-       python_is_python3 && EGIT_BRANCH="feature_python3"
-       ewarn "Using the experimental Python 3 branch!"
-       ewarn "See https://kodi.wiki/view/Migration_to_Python_3 for more information."
-       ewarn "To use the non-experimental Python 2 version:"
-       ewarn "echo '~${CATEGORY}/${P} PYTHON_TARGETS: -* python2_7 PYTHON_SINGLE_TARGET: -* python2_7' >> /etc/portage/package.use"
-       ewarn "then re-merge using: emerge -a =${CATEGORY}/${P}"
+       if python_is_python3; then
+               EGIT_BRANCH="feature_python3"
+               ewarn "Using the experimental Python 3 branch!"
+               ewarn "See https://kodi.wiki/view/Migration_to_Python_3 for more information."
+               ewarn "To use the non-experimental Python 2 version:"
+               ewarn "echo '~${CATEGORY}/${P} PYTHON_TARGETS: -* python2_7 PYTHON_SINGLE_TARGET: -* python2_7' >> /etc/portage/package.use"
+               ewarn "then re-merge using: emerge -a =${CATEGORY}/${PF}"
+       fi
        git-r3_src_unpack
 }