www-client/firefox: fix bug 600386
authorAndrew Savchenko <bircoph@gentoo.org>
Tue, 17 Jan 2017 16:19:46 +0000 (19:19 +0300)
committerAndrew Savchenko <bircoph@gentoo.org>
Tue, 17 Jan 2017 16:20:31 +0000 (19:20 +0300)
Do not call addpredict when ${cards} list is empty.
Thanks Sven B. <bahro@fbihome.de> for proposed fix.

Package-Manager: Portage-2.3.3, Repoman-2.3.1
Signed-off-by: Andrew Savchenko <bircoph@gentoo.org>
www-client/firefox/firefox-50.1.0-r1.ebuild

index 6c11378cb5c625c173f48db7f6848c1e712e1ad9..40b6f45842324d4659c26bed9254059467f1bdc4 100644 (file)
@@ -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"