Morpheus / Mbed OS mbed-Client-Morpheus-hg

Dependencies:   mbed-os

Revision:
45:5a91306f7924
Parent:
44:5ff277e7f754
Child:
46:915be4b5a8f0
--- a/neo.py	Wed Mar 30 16:27:19 2016 -0500
+++ b/neo.py	Wed Mar 30 16:55:54 2016 -0500
@@ -248,6 +248,7 @@
             for file in files:
                 if file.endswith('.lib'):
                     yield Repo.fromlib(os.path.join(root, file))
+                    dirs.remove(file[:-4])
 
     def getrepo(self):
         with open(self.lib) as f:
@@ -367,12 +368,12 @@
     repo.synch()
 
     for lib in repo.libs:
-        if not os.path.isdir(lib.path):
+        if os.path.isdir(lib.path):
+            with cd(lib.path):
+                update(lib.hash)
+        else:
             import_(lib.url, lib.path)
             repo.scm.ignore(lib.path[len(repo.path)+1:])
-        else:
-            with cd(lib.path):
-                update(lib.hash)
 
 # Synch command
 @subcommand('synch',
@@ -430,11 +431,6 @@
         + args,
         env=env)
 
-## List command
-#@subcommand('list',
-#    help='list recursive libraries')
-#def 
-
 # Parse/run command
 args, remainder = parser.parse_known_args()
 status = args.command(args)