scons fix for lucid
tho [Thu, 1 Apr 2010 10:54:19 +0000 (10:54 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1589 270642c3-0616-0410-b53a-bc976706d245

senf/Packets/DefaultBundle/ListOptionTypeParser.cti
site_scons/site_init.py

index 7c0e324..2a3bdec 100644 (file)
@@ -221,7 +221,7 @@ update(container_type const & c)
         return;
     data_iterator i(AuxPolicy::adjust(c.i(), c.state()));
     data_iterator j(i);
-    for (size_type n(n_); n; --n, std::advance(j, senf::bytes(ElementParser(j,c.state()))));
+    for (size_type n(n_); n; --n, std::advance(j, senf::bytes(ElementParser(j,c.state())))) { ; }
     realAux_ = std::distance(i, j);
     container_size_ = c.data().size();
 }
index 088c479..9c2baac 100644 (file)
@@ -1,9 +1,11 @@
 import os.path, SCons
+import inspect
 
 # SCons is at     #/tools/scons-<v>/engine/SCons/__init__.py
 # site_init is at #/site_scons/site_init.py
 
-sconsbase = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))),"tools")
+sconsbase = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(
+    inspect.currentframe().f_code.co_filename))),"tools")
 sconsbase = os.path.join(
     sconsbase,sorted((f for f in os.listdir(sconsbase) if f.startswith("scons-")))[-1])
 sconsengine = os.path.join(sconsbase, 'engine')