added the target directory as an aditional information if different from the name of the module
authordaniel
Thu, 25 Apr 2013 02:34:52 +0200
changeset 220 0d9904a9f88b
parent 219 5528c25d917a
child 221 ca11e6194e94
added the target directory as an aditional information if different from the name of the module
bake/Bake.py
bakeconf.xml
--- a/bake/Bake.py	Thu Apr 25 02:06:08 2013 +0200
+++ b/bake/Bake.py	Thu Apr 25 02:34:52 2013 +0200
@@ -705,7 +705,10 @@
                         return True
         
             if not dependencyExists:
-                sys.stdout.write (" >> Downloading " + module.name() + " - ")
+                targetDir=''
+                if module._source.attribute('module_directory'):
+                    targetDir=' (target directory:%s)'%module._source.attribute('module_directory').value
+                sys.stdout.write (" >> Downloading " + module.name() + targetDir + " - ")
                 sys.stdout.flush()
                 if env._logger._verbose > 0:
                     print
--- a/bakeconf.xml	Thu Apr 25 02:06:08 2013 +0200
+++ b/bakeconf.xml	Thu Apr 25 02:34:52 2013 +0200
@@ -715,6 +715,7 @@
     <module name="nsc-dev">
       <source type="mercurial">
 	<attribute name="url" value="https://secure.wand.net.nz/mercurial/nsc"/>
+        <attribute name="module_directory" value="nsc"/>
       </source>
       <depends_on name="g++" optional="False"/>
       <!-- problem: scons has no generic command-line support for builddir and installdir -->