Wait for node dependencies to be installed before using them (invoking gcc)
authorClaudio-Daniel Freire <claudio-daniel.freire@inria.fr>
Wed, 18 May 2011 09:43:05 +0000 (11:43 +0200)
committerClaudio-Daniel Freire <claudio-daniel.freire@inria.fr>
Wed, 18 May 2011 09:43:05 +0000 (11:43 +0200)
src/nepi/testbeds/planetlab/tunproto.py

index aeceaf0..3b762e6 100644 (file)
@@ -84,6 +84,9 @@ class TunProtoBase(object):
     
         if proc.wait():
             raise RuntimeError, "Failed upload TUN connect script %r: %s %s" % (sources, out,err,)
+        
+        # Make sure all dependencies are satisfied
+        local.node.wait_dependencies()
 
         cmd = ( (
             "cd %(home)s && gcc -fPIC -shared tunalloc.c -o tunalloc.so"