mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
bitbake: cooker/toaster: replaced deprecated method warn() with warning()
Removed the deprecated methods as it will only cause problems later on, and since warn() just calls warning(), it shouldn't change anything (Bitbake rev: a194f275235f22411cb2368f06a44f61ceb6a0f3) Signed-off-by: Frazer Clews <frazer.clews@codethink.co.uk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
cdcacf26ec
commit
6ca91a91af
@@ -1784,7 +1784,7 @@ class CookerCollectFiles(object):
|
|||||||
# When constructing an older style single regex, it's possible for BBMASK
|
# When constructing an older style single regex, it's possible for BBMASK
|
||||||
# to end up beginning with '|', which matches and masks _everything_.
|
# to end up beginning with '|', which matches and masks _everything_.
|
||||||
if mask.startswith("|"):
|
if mask.startswith("|"):
|
||||||
collectlog.warn("BBMASK contains regular expression beginning with '|', fixing: %s" % mask)
|
collectlog.warning("BBMASK contains regular expression beginning with '|', fixing: %s" % mask)
|
||||||
mask = mask[1:]
|
mask = mask[1:]
|
||||||
try:
|
try:
|
||||||
re.compile(mask)
|
re.compile(mask)
|
||||||
|
|||||||
@@ -168,17 +168,17 @@ class Command(BaseCommand):
|
|||||||
try:
|
try:
|
||||||
self.cleanup()
|
self.cleanup()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.warn("runbuilds: cleanup exception %s" % str(e))
|
logger.warning("runbuilds: cleanup exception %s" % str(e))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.archive()
|
self.archive()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.warn("runbuilds: archive exception %s" % str(e))
|
logger.warning("runbuilds: archive exception %s" % str(e))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.schedule()
|
self.schedule()
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.warn("runbuilds: schedule exception %s" % str(e))
|
logger.warning("runbuilds: schedule exception %s" % str(e))
|
||||||
|
|
||||||
def handle(self, **options):
|
def handle(self, **options):
|
||||||
pidfile_path = os.path.join(os.environ.get("BUILDDIR", "."),
|
pidfile_path = os.path.join(os.environ.get("BUILDDIR", "."),
|
||||||
|
|||||||
Reference in New Issue
Block a user