From a3161b6e62374bae03c3c8ee0c88d838e66fc552 Mon Sep 17 00:00:00 2001 From: Dmitry Selyutin Date: Fri, 20 Oct 2017 17:06:07 +0300 Subject: [PATCH] pygnulib.py: use project VFS --- pygnulib.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pygnulib.py b/pygnulib.py index 8ec7934b61..75f8f303e3 100755 --- a/pygnulib.py +++ b/pygnulib.py @@ -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 -- 2.39.5