[elbe-devel] [PATCH 3/5] elbepack: commands: Remove debianize
Bastian Germann
bage at linutronix.de
Mon Mar 6 20:28:52 CET 2023
Remove the debianize command with its bash-completion support.
Signed-off-by: Bastian Germann <bage at linutronix.de>
---
bash-completion | 5 +----
elbepack/commands/debianize.py | 25 -------------------------
2 files changed, 1 insertion(+), 29 deletions(-)
delete mode 100644 elbepack/commands/debianize.py
diff --git a/bash-completion b/bash-completion
index 1547331cb6..d010e4ccec 100644
--- a/bash-completion
+++ b/bash-completion
@@ -14,7 +14,7 @@ _elbe_commands()
else
# Fallback solution (elbe, grep, or sed not available): currently available
# list (as of Nov 2022)
- echo 'add check_updates chg_archive control debianize diff get_archive
+ echo 'add check_updates chg_archive control diff get_archive
init initvm parselicence pbuilder pin_versions pkgdiff preprocess
prjrepo remove_sign repodir setsel show sign validate xsdtoasciidoc'
fi
@@ -104,9 +104,6 @@ _cmd_args_completion_elbe()
file_arg=true
cmd_opt=" "
;;
- debianize)
- cmd_opt=" "
- ;;
control)
file_arg=true
disable_space=true
diff --git a/elbepack/commands/debianize.py b/elbepack/commands/debianize.py
deleted file mode 100644
index 2eb946ee1e..0000000000
--- a/elbepack/commands/debianize.py
+++ /dev/null
@@ -1,25 +0,0 @@
-# ELBE - Debian Based Embedded Rootfilesystem Builder
-# Copyright (c) 2016-2017 Manuel Traut <manut at linutronix.de>
-# Copyright (c) 2017 Torben Hohn <torben.hohn at linutronix.de>
-#
-# SPDX-License-Identifier: GPL-3.0-or-later
-
-import os
-import sys
-
-from elbepack.debianize.base.tui import TUI
-from elbepack.debianize.panels.factory import detect_panel
-
-
-def run_command(_args):
-
- if os.path.exists('debian'):
- print("debian folder already exists, nothing to do")
- sys.exit(10)
- try:
- TUI(detect_panel())()
- except KeyError:
- print("This creates a debianization of a source directory.\n"
- "The software was not able to identify the current directory.\n"
- "Please run the command from a valid source directory")
- sys.exit(20)
--
2.39.2
More information about the elbe-devel
mailing list