]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
vfs: rename filesystem to vfs
authorDmitry Selyutin <ghostmansd@gmail.com>
Wed, 4 Oct 2017 18:10:55 +0000 (21:10 +0300)
committerDmitry Selyutin <ghostmansd@gmail.com>
Thu, 5 Oct 2017 07:03:21 +0000 (10:03 +0300)
pygnulib.py
pygnulib/vfs.py [moved from pygnulib/filesystem.py with 97% similarity]

index b58260a9b94596cb47b0d9d6caee14f84059e387..2b6c55f93b300b292180171077be252ade4aa41c 100755 (executable)
@@ -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)
similarity index 97%
rename from pygnulib/filesystem.py
rename to pygnulib/vfs.py
index ded4268a58748b86f655ceeafca8c19682257857..14df5c413be60fc797413872917c91bf359dd668 100644 (file)
@@ -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,