Mercurial > gnulib
changeset 39045:d81a9596b6d7
pygnulib.py: use project VFS
author | Dmitry Selyutin <ghostmansd@gmail.com> |
---|---|
date | Fri, 20 Oct 2017 17:06:07 +0300 |
parents | a2518e023420 |
children | 27fd4beae98e |
files | pygnulib.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pygnulib.py Fri Oct 20 17:05:21 2017 +0300 +++ b/pygnulib.py Fri Oct 20 17:06:07 2017 +0300 @@ -24,6 +24,7 @@ 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 @@ } 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 @@ # Then the files that are in new-files and in old-files: kept_files = (old_files & new_files) + return os.EX_OK