]> Savannah Git Hosting - gnulib.git/commitdiff
pygnulib.py: use project VFS
authorDmitry Selyutin <ghostmansd@gmail.com>
Fri, 20 Oct 2017 14:06:07 +0000 (17:06 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Fri, 20 Oct 2017 14:06:07 +0000 (17:06 +0300)
pygnulib.py

index 8ec7934b618342b6dbef8e30e08da74cb7d1ddb5..75f8f303e37dc4c2887f3e67178cabb42153e0d7 100755 (executable)
@@ -24,6 +24,7 @@ from pygnulib.module import transitive_closure
 from pygnulib.parser import CommandLine as CommandLineParser
 
 from pygnulib.vfs import Base as BaseVFS
+from pygnulib.vfs import Project as ProjectVFS
 from pygnulib.vfs import GnulibGit as GnulibGitVFS
 
 
@@ -155,7 +156,7 @@ def import_hook(script, gnulib, namespace, verbosity, options, *args, **kwargs):
     }
     table = {k:v for k,v in table.items() if v}
     table["top"] = ""
-    root = BaseVFS(config.root, **table)
+    root = ProjectVFS(config.root, **table)
     local = BaseVFS(config.local, **table)
     for prefix in table:
         os.makedirs(root[prefix], exist_ok=True)
@@ -169,6 +170,7 @@ def import_hook(script, gnulib, namespace, verbosity, options, *args, **kwargs):
 
     # Then the files that are in new-files and in old-files:
     kept_files = (old_files & new_files)
+
     return os.EX_OK