mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 09:32:13 +02:00
bitbake: knotty: some small cleanups while I'm in here
+ missing imports + indentation fix + missing call to super __init__ + redundant parenthesis (Bitbake rev: 89613f4ba31377528d1934cc591fe33218bd916a) Signed-off-by: Chris Laplante <chris.laplante@agilent.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
c7b362f5ec
commit
bfe176d6d5
@@ -24,6 +24,12 @@ import atexit
|
||||
from itertools import groupby
|
||||
|
||||
from bb.ui import uihelper
|
||||
import bb.build
|
||||
import bb.command
|
||||
import bb.cooker
|
||||
import bb.event
|
||||
import bb.runqueue
|
||||
import bb.utils
|
||||
|
||||
featureSet = [bb.cooker.CookerFeatures.SEND_SANITYEVENTS, bb.cooker.CookerFeatures.BASEDATASTORE_TRACKING]
|
||||
|
||||
@@ -103,7 +109,7 @@ def new_progress(msg, maxval):
|
||||
return NonInteractiveProgress(msg, maxval)
|
||||
|
||||
def pluralise(singular, plural, qty):
|
||||
if(qty == 1):
|
||||
if qty == 1:
|
||||
return singular % qty
|
||||
else:
|
||||
return plural % qty
|
||||
@@ -112,6 +118,7 @@ def pluralise(singular, plural, qty):
|
||||
class InteractConsoleLogFilter(logging.Filter):
|
||||
def __init__(self, tf):
|
||||
self.tf = tf
|
||||
super().__init__()
|
||||
|
||||
def filter(self, record):
|
||||
if record.levelno == bb.msg.BBLogFormatter.NOTE and (record.msg.startswith("Running") or record.msg.startswith("recipe ")):
|
||||
@@ -569,9 +576,9 @@ def main(server, eventHandler, params, tf = TerminalFilter):
|
||||
loglink = os.path.join(consolelogdirname, 'console-latest.log')
|
||||
bb.utils.remove(loglink)
|
||||
try:
|
||||
os.symlink(os.path.basename(consolelogfile), loglink)
|
||||
os.symlink(os.path.basename(consolelogfile), loglink)
|
||||
except OSError:
|
||||
pass
|
||||
pass
|
||||
|
||||
# Add the logging domains specified by the user on the command line
|
||||
for (domainarg, iterator) in groupby(params.debug_domains):
|
||||
|
||||
Reference in New Issue
Block a user