.py diffs

Adriaan de Groot <adridg-FlD2LfDziEhmR6Xm/[email protected]>
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
some minor .py diffs - i notice that you hadn't defined :import as a toplevel 
command? the other part avoids a crash if there is no objsuf defined - 
something that happens to me now with the libtool module with every C++ file 
- it _looks_ like the objsuf isn't set to $OBJSUF if nothing else is found.


-- 
pub  1024D/FEA2A3FE 2002-06-18 Adriaan de Groot <[email protected]>
            If the door is ajar, can we fill it with door-jamb?
py.diff (text/x-diff, 1.1 KB)
Index: Process.py
===================================================================
RCS file: /cvsroot/a-a-p/Exec/Process.py,v
retrieving revision 1.62
diff -u -3 -p -r1.62 Process.py
--- Process.py	25 Sep 2003 19:09:53 -0000	1.62
+++ Process.py	30 Sep 2003 21:27:01 -0000
@@ -31,6 +31,7 @@ aap_cmd_toplevel = [
                 "toolsearch",
                 "totype",
                 "variant",
+                "import",
                 ]
 
 # All possible names of ":" commands in a recipe, including toplevel-only ones.
Index: RecPython.py
===================================================================
RCS file: /cvsroot/a-a-p/Exec/RecPython.py,v
retrieving revision 1.29
diff -u -3 -p -r1.29 RecPython.py
--- RecPython.py	29 Sep 2003 17:24:54 -0000	1.29
+++ RecPython.py	30 Sep 2003 21:27:04 -0000
@@ -279,6 +282,9 @@ def srcitem2obj(recdict, name, attrdict 
                 break
     else:
         objsuf = ''
+
+    if not objsuf:
+	objsuf = ''
 
     i = string.rfind(name, '.')
     if i > 0 and i > string.rfind(name, '/') and i > string.rfind(name, '\\'):
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.