jhbuild r2491 - in trunk: . jhbuild/modtypes
- From: fpeters svn gnome org
- To: svn-commits-list gnome org
- Subject: jhbuild r2491 - in trunk: . jhbuild/modtypes
- Date: Sun,  9 Nov 2008 23:02:45 +0000 (UTC)
Author: fpeters
Date: Sun Nov  9 23:02:45 2008
New Revision: 2491
URL: http://svn.gnome.org/viewvc/jhbuild?rev=2491&view=rev
Log:
* jhbuild/modtypes/autotools.py: ignore errors that could happen when
trying to chmod autogen.sh/configure missing its exec bit.
Modified:
   trunk/ChangeLog
   trunk/jhbuild/modtypes/autotools.py
Modified: trunk/jhbuild/modtypes/autotools.py
==============================================================================
--- trunk/jhbuild/modtypes/autotools.py	(original)
+++ trunk/jhbuild/modtypes/autotools.py	Sun Nov  9 23:02:45 2008
@@ -138,8 +138,11 @@
                     os.path.exists(os.path.join(srcdir, 'configure')):
                 self.autogen_sh = 'configure'
 
-        if not (os.stat(os.path.join(srcdir, self.autogen_sh))[stat.ST_MODE] & 0111):
-            os.chmod(os.path.join(srcdir, self.autogen_sh), 0755)
+        try:
+            if not (os.stat(os.path.join(srcdir, self.autogen_sh))[stat.ST_MODE] & 0111):
+                os.chmod(os.path.join(srcdir, self.autogen_sh), 0755)
+        except:
+            pass
 
         if self.autogen_template:
             template = self.autogen_template
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]