From: Dmitry Selyutin Date: Fri, 20 Oct 2017 14:06:07 +0000 (+0300) Subject: pygnulib.py: use project VFS X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=a3161b6e62374bae03c3c8ee0c88d838e66fc552;p=gnulib.git pygnulib.py: use project VFS --- 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