From 6630f2c97c5296b6c62a6706e91571cfeb0d5f18 Mon Sep 17 00:00:00 2001 From: Jim Galarowicz Date: Mon, 13 Feb 2017 10:34:09 -0800 Subject: [PATCH] Fix tabs versus spaces and swap if and else clause check from a negative to a positive check. --- var/spack/repos/builtin/packages/qt/package.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/var/spack/repos/builtin/packages/qt/package.py b/var/spack/repos/builtin/packages/qt/package.py index 2506f42f756..dfe83888e59 100644 --- a/var/spack/repos/builtin/packages/qt/package.py +++ b/var/spack/repos/builtin/packages/qt/package.py @@ -227,12 +227,12 @@ def common_config_args(self): @when('@3') def configure(self): # A user reported that this was necessary to link Qt3 on ubuntu. - # However, if LD_LIBRARY_PATH is not set the qt build fails, check - # and set LD_LIBRARY_PATH if not set, update if it is set. - if not os.environ.get('LD_LIBRARY_PATH'): - os.environ['LD_LIBRARY_PATH'] = os.pathsep + os.getcwd() + '/lib' - else: - os.environ['LD_LIBRARY_PATH'] += os.pathsep + os.getcwd() + '/lib' + # However, if LD_LIBRARY_PATH is not set the qt build fails, check + # and set LD_LIBRARY_PATH if not set, update if it is set. + if os.environ.get('LD_LIBRARY_PATH'): + os.environ['LD_LIBRARY_PATH'] += os.pathsep + os.getcwd() + '/lib' + else: + os.environ['LD_LIBRARY_PATH'] = os.pathsep + os.getcwd() + '/lib' configure('-prefix', self.prefix, '-v',