]> arthur.barton.de Git - bup.git/commitdiff
Remove scaffolding needed during the bup.c conversion
authorRob Browning <rlb@defaultvalue.org>
Sat, 13 Feb 2021 19:31:18 +0000 (13:31 -0600)
committerRob Browning <rlb@defaultvalue.org>
Sat, 27 Mar 2021 19:44:05 +0000 (14:44 -0500)
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/main.py

index 16aeaad0e748e77834e6718f3f0baa79e76975ef..e527977a2aa9214f391167b68ffeae163f9f7d05 100755 (executable)
@@ -50,9 +50,6 @@ handle_ctrl_c()
 
 cmdpath = path.cmddir()
 
-# Remove once we finish the internal command transition
-transition_cmdpath = path.libdir() + b'/bup/cmd'
-
 # We manipulate the subcmds here as strings, but they must be ASCII
 # compatible, since we're going to be looking for exactly
 # b'bup-SUBCMD' to exec.
@@ -155,44 +152,6 @@ if not subcmd_name:
     usage()
 
 try:
-    if subcmd_name not in (b'bloom',
-                           b'cat-file',
-                           b'daemon',
-                           b'drecurse',
-                           b'damage',
-                           b'features',
-                           b'ftp',
-                           b'fsck',
-                           b'fuse',
-                           b'gc',
-                           b'get',
-                           b'help',
-                           b'import-duplicity',
-                           b'index',
-                           b'init',
-                           b'join',
-                           b'list-idx',
-                           b'ls',
-                           b'margin',
-                           b'memtest',
-                           b'meta',
-                           b'midx',
-                           b'mux',
-                           b'on',
-                           b'on--server',
-                           b'prune-older',
-                           b'random',
-                           b'restore',
-                           b'rm',
-                           b'save',
-                           b'server',
-                           b'split',
-                           b'tag',
-                           b'tick',
-                           b'version',
-                           b'web',
-                           b'xstat'):
-        raise ModuleNotFoundError()
     cmd_module = import_module('bup.cmd.'
                                + subcmd_name.decode('ascii').replace('-', '_'))
 except ModuleNotFoundError as ex:
@@ -200,9 +159,6 @@ except ModuleNotFoundError as ex:
 
 if not cmd_module:
     subcmd[0] = os.path.join(cmdpath, b'bup-' + subcmd_name)
-    if not os.path.exists(subcmd[0]):
-        subcmd[0] = b'%s/%s.py' % (transition_cmdpath,
-                                   subcmd_name.replace(b'-', b'_'))
     if not os.path.exists(subcmd[0]):
         usage('error: unknown command "%s"' % path_msg(subcmd_name))