summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
diff options
context:
space:
mode:
authorFrazer Clews <frazer.clews@codethink.co.uk>2020-01-16 16:55:18 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-19 13:31:05 +0000
commit0ac5174c7d39a3e49893df0d517d47bec1935555 (patch)
tree479496afb1da7814071e39e888e8926cd03bec57 /bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
parent444bcb6cb6be8d5205fc88790360d864e633a555 (diff)
downloadpoky-0ac5174c7d39a3e49893df0d517d47bec1935555.tar.gz
bitbake: lib: remove unused imports
removed unused imports which made the code harder to read, and slightly but less efficient (Bitbake rev: 4367692a932ac135c5aa4f9f2a4e4f0150f76697) Signed-off-by: Frazer Clews <frazer.clews@codethink.co.uk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/bldcontrol/localhostbecontroller.py')
-rw-r--r--bitbake/lib/toaster/bldcontrol/localhostbecontroller.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
index 39ea736b58..75674ccbf1 100644
--- a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
+++ b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
@@ -7,27 +7,24 @@
7# 7#
8 8
9import os 9import os
10import sys
11import re 10import re
12import shutil 11import shutil
13import time 12import time
14from django.db import transaction 13from bldcontrol.models import BuildEnvironment, BuildRequest, Build
15from django.db.models import Q 14from orm.models import CustomImageRecipe, Layer, Layer_Version, Project, ToasterSetting
16from bldcontrol.models import BuildEnvironment, BuildRequest, BRLayer, BRVariable, BRTarget, BRBitbake, Build
17from orm.models import CustomImageRecipe, Layer, Layer_Version, Project, ProjectLayer, ToasterSetting
18from orm.models import signal_runbuilds 15from orm.models import signal_runbuilds
19import subprocess 16import subprocess
20 17
21from toastermain import settings 18from toastermain import settings
22 19
23from bldcontrol.bbcontroller import BuildEnvironmentController, ShellCmdException, BuildSetupException, BitbakeController 20from bldcontrol.bbcontroller import BuildEnvironmentController, ShellCmdException, BuildSetupException
24 21
25import logging 22import logging
26logger = logging.getLogger("toaster") 23logger = logging.getLogger("toaster")
27 24
28install_dir = os.environ.get('TOASTER_DIR') 25install_dir = os.environ.get('TOASTER_DIR')
29 26
30from pprint import pprint, pformat 27from pprint import pformat
31 28
32class LocalhostBEController(BuildEnvironmentController): 29class LocalhostBEController(BuildEnvironmentController):
33 """ Implementation of the BuildEnvironmentController for the localhost; 30 """ Implementation of the BuildEnvironmentController for the localhost;