summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Palimaka <kensington@gentoo.org>2015-08-20 04:15:16 +1000
committerMichael Palimaka <kensington@gentoo.org>2015-08-20 04:15:16 +1000
commit0406767d0563f0a01874128e83039b961c7023e4 (patch)
treeb1632ed7217a707e5b6d32872a9af072e3eae72a
parentd3907fc5eaed884dfaf67ef8a6c0bab0c66bb080 (diff)
downloadkde-0406767d0563f0a01874128e83039b961c7023e4.tar.gz
kde-0406767d0563f0a01874128e83039b961c7023e4.tar.bz2
kde-0406767d0563f0a01874128e83039b961c7023e4.zip
kde4-base.eclass: don't warn on regular fetch failure
-rw-r--r--eclass/kde4-base.eclass24
1 files changed, 18 insertions, 6 deletions
diff --git a/eclass/kde4-base.eclass b/eclass/kde4-base.eclass
index 8cc21c9e797..b072a0610d7 100644
--- a/eclass/kde4-base.eclass
+++ b/eclass/kde4-base.eclass
@@ -414,6 +414,17 @@ DEPEND+=" ${COMMONDEPEND}"
RDEPEND+=" ${COMMONDEPEND}"
unset COMMONDEPEND
+_kde_is_unreleased() {
+ local pair
+ for pair in "${KDE_UNRELEASED[@]}" ; do
+ if [[ "${pair}" = "${CATEGORY}-${PV}" ]]; then
+ return 0
+ fi
+ done
+
+ return 1
+}
+
# Fetch section - If the ebuild's category is not 'kde-base' and if it is not a
# kdevelop ebuild, the URI should be set in the ebuild itself
_calculate_src_uri() {
@@ -486,12 +497,9 @@ _calculate_src_uri() {
;;
esac
- local pair
- for pair in "${KDE_UNRELEASED[@]}" ; do
- if [[ "${pair}" = "${CATEGORY}-${PV}" ]]; then
- RESTRICT+=" fetch"
- fi
- done
+ if _kde_is_unreleased ; then
+ RESTRICT+=" fetch"
+ fi
}
_calculate_live_repo() {
@@ -663,6 +671,10 @@ kde4-base_pkg_setup() {
# @DESCRIPTION:
# Display package publication status
kde4-base_pkg_nofetch() {
+ if ! _kde_is_unreleased ; then
+ return
+ fi
+
eerror " _ _ _ _ ____ _____ _ _____ _ ____ _____ ____ "
eerror "| | | | \ | | _ \| ____| | | ____| / \ / ___|| ____| _ \ "
eerror "| | | | \| | |_) | _| | | | _| / _ \ \___ \| _| | | | |"