commit:     53b80a8d0b9a3eb6c20a3e9c56add2381a1d91dc
Author:     Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 17 16:19:46 2017 +0000
Commit:     Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
CommitDate: Tue Jan 17 16:20:31 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53b80a8d

www-client/firefox: fix bug 600386

Do not call addpredict when ${cards} list is empty.
Thanks Sven B. <bahro <AT> fbihome.de> for proposed fix.

Package-Manager: Portage-2.3.3, Repoman-2.3.1
Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>

 www-client/firefox/firefox-50.1.0-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/www-client/firefox/firefox-50.1.0-r1.ebuild 
b/www-client/firefox/firefox-50.1.0-r1.ebuild
index 6c11378..40b6f45 100644
--- a/www-client/firefox/firefox-50.1.0-r1.ebuild
+++ b/www-client/firefox/firefox-50.1.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -256,7 +256,7 @@ src_compile() {
                        fi
                fi
                shopt -u nullglob
-               addpredict "${cards}"
+               [[ -n "${cards}" ]] && addpredict "${cards}"
 
                MOZ_MAKE_FLAGS="${MAKEOPTS}" 
SHELL="${SHELL:-${EPREFIX%/}/bin/bash}" \
                virtx emake -f client.mk profiledbuild || die "virtx emake 
failed"

Reply via email to