[elbe-devel] [PATCH 32/32] Remove "asciidoclog.py" from ELBE

dion at linutronix.de dion at linutronix.de
Fri Jun 14 22:13:46 CEST 2019


From: Olivier Dion <dion at linutronix.de>

Signed-off-by: Olivier Dion <dion at linutronix.de>
---
 elbepack/asciidoclog.py | 67 -------------------------------------------------
 1 file changed, 67 deletions(-)
 delete mode 100644 elbepack/asciidoclog.py

diff --git a/elbepack/asciidoclog.py b/elbepack/asciidoclog.py
deleted file mode 100644
index 86f6f74e..00000000
--- a/elbepack/asciidoclog.py
+++ /dev/null
@@ -1,67 +0,0 @@
-# ELBE - Debian Based Embedded Rootfilesystem Builder
-# Copyright (c) 2014, 2016 Torben Hohn <torben.hohn at linutronix.de>
-# Copyright (c) 2014 Ferdinand Schwenk <ferdinand.schwenk at emtrion.de>
-# Copyright (c) 2014, 2016-2017 Manuel Traut <manut at linutronix.de>
-#
-# SPDX-License-Identifier: GPL-3.0-or-later
-
-import os
-import sys
-
-from elbepack.shellhelper import get_command_out, do, chroot
-from elbepack.log import log
-
-class CommandError(Exception):
-    def __init__(self, cmd, returncode):
-        Exception.__init__(self)
-        self.returncode = returncode
-        self.cmd = cmd
-
-    def __repr__(self):
-        return "Error: %d returned from Command %s" % (
-            self.returncode, self.cmd)
-
-
-
-class LogBase(object):
-    def __init__(self, *args, **kwargs):
-        self.filename = log.filename
-
-    def printo(self, text=""):
-        log.debug(text)
-
-    def print_raw(self, text):
-        self.printo(text)
-
-    def h1(self, text):
-        self.printo(text)
-
-    def h2(self, text):
-        self.printo(text)
-
-    def table(self):
-        pass
-
-    def verbatim_start(self):
-        pass
-
-    def verbatim_end(self):
-        pass
-
-    def do(self, cmd, **kwargs):
-        return do(cmd, **kwargs)
-
-    def chroot(self, directory, cmd, **kwargs):
-        return chroot(directory, cmd, **kwargs)
-
-    def get_command_out(self, cmd, **kwargs):
-        return get_command_out(cmd, **kwargs)
-
-class ASCIIDocLog (LogBase):
-    pass
-
-class StdoutLog(LogBase):
-    pass
-
-class StderrLog(LogBase):
-    pass
-- 
2.11.0




More information about the elbe-devel mailing list