Commit 1fc7b0c1 authored by Leo Iannacone's avatar Leo Iannacone

Merge remote-tracking branch 'github/master' into portable

parents d46a89fc f8f4fd69
# unreleased # unreleased
* [new] [module] change names to Start and Stop
* [new] [module] add parser for blhc log file * [new] [module] add parser for blhc log file
* [new] history page
* [new] show file size for package files * [new] show file size for package files
* [new] disable autoscroll pressing on "back on top" panel * [new] disable autoscroll pressing on "back on top" panel
* [new] log files can be now showed directly in the browsers * [new] log files can be now showed directly in the browsers
......
...@@ -17,8 +17,8 @@ Some **debomatic-webui** instances are already running over: ...@@ -17,8 +17,8 @@ Some **debomatic-webui** instances are already running over:
You need **JSONLogger** debomatic module (provided along with this interface) to get installed in debomatic, type this in a command line: You need **JSONLogger** debomatic module (provided along with this interface) to get installed in debomatic, type this in a command line:
``` ```
sudo ln -s `pwd`/debomatic-modules/JSONLogger.py /usr/share/debomatic/modules/00_JSONLogger.py sudo ln -s `pwd`/debomatic-modules/JSONLogger.py /usr/share/debomatic/modules/JSONLoggerStart.py
sudo ln -s `pwd`/debomatic-modules/JSONLogger.py /usr/share/debomatic/modules/ZZ_JSONLogger.py sudo ln -s `pwd`/debomatic-modules/JSONLogger.py /usr/share/debomatic/modules/JSONLoggerStop.py
``` ```
Restart debomatic service. Restart debomatic service.
......
...@@ -31,11 +31,10 @@ from json import load as fileToJSON ...@@ -31,11 +31,10 @@ from json import load as fileToJSON
from collections import defaultdict from collections import defaultdict
# ZZ and 00 are wrappers for JSONLogger to get module run class DebomaticModule_JSONLoggerStart:
# as first and as last one for pre_* and post_* hooks
class DebomaticModule_00_JSONLogger:
def __init__(self): def __init__(self):
self.logger = DebomaticModule_JSONLogger() self.logger = DebomaticModule_JSONLogger()
self.first = True
def pre_chroot(self, args): def pre_chroot(self, args):
self.logger.pre_chroot(args) self.logger.pre_chroot(args)
...@@ -44,9 +43,10 @@ class DebomaticModule_00_JSONLogger: ...@@ -44,9 +43,10 @@ class DebomaticModule_00_JSONLogger:
self.logger.pre_build(args) self.logger.pre_build(args)
class DebomaticModule_ZZ_JSONLogger: class DebomaticModule_JSONLoggerStop:
def __init__(self): def __init__(self):
self.logger = DebomaticModule_JSONLogger() self.logger = DebomaticModule_JSONLogger()
self.last = True
def post_chroot(self, args): def post_chroot(self, args):
self.logger.post_chroot(args) self.logger.post_chroot(args)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment