[jhbuild] Only point aclocal to existing directories
- From: Frederic Peters <fpeters src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [jhbuild] Only point aclocal to existing directories
- Date: Tue, 9 Feb 2010 16:16:58 +0000 (UTC)
commit 8493af112694b2d1df8c374ec58e0efb50dfbbd4
Author: Frédéric Péters <fpeters 0d be>
Date: Tue Feb 9 17:16:43 2010 +0100
Only point aclocal to existing directories
jhbuild/config.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/jhbuild/config.py b/jhbuild/config.py
index 6009829..4ab415b 100644
--- a/jhbuild/config.py
+++ b/jhbuild/config.py
@@ -361,8 +361,10 @@ class Config:
os.makedirs(aclocaldir)
except:
raise FatalError(_("Can't create %s directory") % aclocaldir)
- addpath('ACLOCAL_FLAGS', '/usr/share/aclocal')
- addpath('ACLOCAL_FLAGS', '/usr/local/share/aclocal')
+ if os.path.exists('/usr/share/aclocal'):
+ addpath('ACLOCAL_FLAGS', '/usr/share/aclocal')
+ if os.path.exists('/usr/local/share/aclocal'):
+ addpath('ACLOCAL_FLAGS', '/usr/local/share/aclocal')
addpath('ACLOCAL_FLAGS', aclocaldir)
# PERL5LIB
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]