[cig-commits] commit: Typo.

Mercurial hg at geodynamics.org
Mon Nov 24 11:23:03 PST 2008


changeset:   74:28d250a083aa
user:        LukeHodkinson
date:        Thu Apr 10 02:34:02 2008 +0000
files:       config/SConfig/Package.py config/SConfig/packages/X11.py
description:
Typo.


diff -r 5cbb967910a8 -r 28d250a083aa config/SConfig/Package.py
--- a/config/SConfig/Package.py	Thu Apr 10 02:31:32 2008 +0000
+++ b/config/SConfig/Package.py	Thu Apr 10 02:34:02 2008 +0000
@@ -13,7 +13,7 @@ class Package(SConfig.Node):
         self.base_dirs           = [] #['']
         self.base_patterns       = [] #['']
         self.sub_dirs            = [] #[[[''], ['']]]
-        self.header_sub_dirs     = [] #['']
+        self.header_sub_dir      = [] #['']
         self.system_header_dirs  = []
         self.system_library_dirs = []
 
@@ -324,7 +324,7 @@ int main(int argc, char* argv[]) {
                 if os.path.exists(dir) and os.path.isdir(dir):
                     for hdr, lib in self.combine_sub_dirs(dir):
                         yield [dir, list(hdr), list(lib), list(fw)]
-                        for sub in self.combine_header_sub_dirs(dir, hdr):
+                        for sub in self.combine_header_sub_dir(dir, hdr):
                             yield [dir, list(sub), list(lib), list(fw)]
 
     def combine_sub_dirs(self, base_dir):
@@ -357,10 +357,10 @@ int main(int argc, char* argv[]) {
 
             yield (hdr_dirs, lib_dirs)
 
-    def combine_header_sub_dirs(self, base_dir, hdr_dirs):
-        if not self.header_sub_dirs or not hdr_dirs:
+    def combine_header_sub_dir(self, base_dir, hdr_dirs):
+        if not self.header_sub_dir or not hdr_dirs:
             return
-        for sub_dir in self.header_sub_dirs:
+        for sub_dir in self.header_sub_dir:
             cand = [os.path.join(h, sub_dir) for h in hdr_dirs if h]
             for d in cand:
                 path = os.path.join(base_dir, d)
diff -r 5cbb967910a8 -r 28d250a083aa config/SConfig/packages/X11.py
--- a/config/SConfig/packages/X11.py	Thu Apr 10 02:31:32 2008 +0000
+++ b/config/SConfig/packages/X11.py	Thu Apr 10 02:34:02 2008 +0000
@@ -5,7 +5,7 @@ class X11(SConfig.Package):
     def __init__(self, scons_env, scons_opts, required=False, **kw):
         SConfig.Package.__init__(self, scons_env, scons_opts, required, **kw)
         self.base_dirs += ['/usr/X11R6']
-        self.header_sub_dirs = ['X11']
+        self.header_sub_dir = ['X11']
         self.headers = [['Xlib.h']]
         self.libraries = [['X11', 'Xmu']]
         self.symbols = [(['XOpenDisplay'], '')]



More information about the CIG-COMMITS mailing list