jhbuild r2753 - in trunk: . jhbuild/commands
- From: mgorse svn gnome org
- To: svn-commits-list gnome org
- Subject: jhbuild r2753 - in trunk: . jhbuild/commands
- Date: Thu, 5 Mar 2009 22:50:25 +0000 (UTC)
Author: mgorse
Date: Thu Mar 5 22:50:25 2009
New Revision: 2753
URL: http://svn.gnome.org/viewvc/jhbuild?rev=2753&view=rev
Log:
* jhbuild/commands/sanitycheck.py: Be clearer about the macro
filenames and the paths in which they need to be.
Modified:
trunk/ChangeLog
trunk/jhbuild/commands/sanitycheck.py
Modified: trunk/jhbuild/commands/sanitycheck.py
==============================================================================
--- trunk/jhbuild/commands/sanitycheck.py (original)
+++ trunk/jhbuild/commands/sanitycheck.py Thu Mar 5 22:50:25 2009
@@ -92,18 +92,23 @@
r'automake \([^)]*\) ([\d.]+)', '1.9'):
uprint(_('%s not found') % 'automake-1.9')
+ not_in_path = []
for amver in ('1.4', '1.7', '1.8', '1.9'):
try:
path = get_aclocal_path(amver)
except:
continue # exception raised if aclocal-ver not runnable
- if not inpath('libtool.m4', path):
- uprint(_("aclocal-%s can't see libtool macros") % amver)
- if not inpath('gettext.m4', path):
- uprint(_("aclocal-%s can't see gettext macros") % amver)
- if not inpath('pkg.m4', path):
- uprint(_("aclocal-%s can't see pkg-config macros") % amver)
+ macros = ['libtool.m4', 'gettext.m4', 'pkg.m4']
+ for macro in macros:
+ if not inpath (macro, path):
+ uprint(_("aclocal-%s can't see %s macros") % (amver, macro.split('.m4')[0]))
+ if not_in_path.count(macro) == 0:
+ not_in_path.append(macro)
+
+ if len(not_in_path) > 0:
+ uprint(_("Please copy the lacking macros (%s) in one of the following paths: %s"
+ % (', '.join(not_in_path), ', '.join(path))))
# XML catalog sanity checks
if not os.access('/etc/xml/catalog', os.R_OK):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]