From 648d99e756d4196b9cbe464d94a5f909dee2f17e Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Tue, 26 Jul 2016 15:44:01 +0200 Subject: [PATCH] prepare.py: fix error for glibtoolize --- prepare.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/prepare.py b/prepare.py index 588431628..639ec6978 100755 --- a/prepare.py +++ b/prepare.py @@ -191,10 +191,11 @@ class IOSPreparator(prepare.Preparator): if self.check_is_installed("libtoolize", warn=False): if not self.check_is_installed("glibtoolize", "libtool"): - glibtoolize_path = find_executable("glibtoolize") reterr = 1 - msg = "Please do a symbolic link from glibtoolize to libtoolize:\n\tln -s {} ${}" - error(msg.format(glibtoolize_path, glibtoolize_path.replace("glibtoolize", "libtoolize"))) + glibtoolize_path = find_executable("glibtoolize") + if glibtoolize_path is not None: + msg = "Please do a symbolic link from glibtoolize to libtoolize:\n\tln -s {} ${}" + error(msg.format(glibtoolize_path, glibtoolize_path.replace("glibtoolize", "libtoolize"))) devnull = open(os.devnull, 'wb') # just ensure that JDK is installed - if not, it will automatically display a popup to user