From: Dmitry Selyutin Date: Wed, 4 Oct 2017 18:10:55 +0000 (+0300) Subject: vfs: rename filesystem to vfs X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3d2c38fe3b1cf092b087fc5a20afcc09cedcf52;p=thirdparty%2Fgnulib.git vfs: rename filesystem to vfs --- diff --git a/pygnulib.py b/pygnulib.py index b58260a9b9..2b6c55f93b 100755 --- a/pygnulib.py +++ b/pygnulib.py @@ -23,7 +23,8 @@ from pygnulib.module import transitive_closure from pygnulib.parser import CommandLine as CommandLineParser -from pygnulib.filesystem import GnulibGit as GnulibGitFS +from pygnulib.vfs import Base as BaseVFS +from pygnulib.vfs import GnulibGit as GnulibGitVFS @@ -187,7 +188,7 @@ HOOKS = { def main(script, gnulib, program, arguments, environ): - gnulib = GnulibGitFS(gnulib) + gnulib = GnulibGitVFS(gnulib) parser = CommandLineParser(program) try: (namespace, mode, verbosity, options) = parser.parse(arguments) diff --git a/pygnulib/filesystem.py b/pygnulib/vfs.py similarity index 97% rename from pygnulib/filesystem.py rename to pygnulib/vfs.py index ded4268a58..14df5c413b 100644 --- a/pygnulib/filesystem.py +++ b/pygnulib/vfs.py @@ -15,7 +15,7 @@ from .module import File as _FileModule_ -class Directory: +class Base: """gnulib generic virtual file system""" _TABLE_ = { "lib" : "source_base", @@ -69,7 +69,7 @@ class Directory: parts += [part] continue if not replaced: - for old, new in Directory._TABLE_.items(): + for old, new in Base._TABLE_.items(): if part == old: part = self.__config[new] replaced = True @@ -93,7 +93,7 @@ class Directory: -class GnulibGit(Directory): +class GnulibGit(Base): """gnulib git repository""" _EXCLUDE_ = { "." : str.startswith,