mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
wic: use wic logger in wic source plugins
Replaced msger with wic logger in wic source plugins. (From OE-Core rev: 19a868e9ad12fb27a7f713685d12f3d310fd6961) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
7c163ada95
commit
1dd8cca631
@@ -15,13 +15,16 @@
|
||||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
#
|
||||
|
||||
import logging
|
||||
import os
|
||||
import sys
|
||||
|
||||
from wic import msger
|
||||
from wic.pluginbase import SourcePlugin
|
||||
from wic.utils.misc import exec_cmd, get_bitbake_var
|
||||
from wic.filemap import sparse_copy
|
||||
|
||||
logger = logging.getLogger('wic')
|
||||
|
||||
class RawCopyPlugin(SourcePlugin):
|
||||
"""
|
||||
Populate partition content from raw image file.
|
||||
@@ -59,13 +62,14 @@ class RawCopyPlugin(SourcePlugin):
|
||||
if not bootimg_dir:
|
||||
bootimg_dir = get_bitbake_var("DEPLOY_DIR_IMAGE")
|
||||
if not bootimg_dir:
|
||||
msger.error("Couldn't find DEPLOY_DIR_IMAGE, exiting\n")
|
||||
logger.error("Couldn't find DEPLOY_DIR_IMAGE, exiting\n")
|
||||
sys.exit(1)
|
||||
|
||||
msger.debug('Bootimg dir: %s' % bootimg_dir)
|
||||
logger.debug('Bootimg dir: %s', bootimg_dir)
|
||||
|
||||
if 'file' not in source_params:
|
||||
msger.error("No file specified\n")
|
||||
return
|
||||
logger.error("No file specified\n")
|
||||
sys.exit(1)
|
||||
|
||||
src = os.path.join(bootimg_dir, source_params['file'])
|
||||
dst = os.path.join(cr_workdir, "%s.%s" % (source_params['file'], part.lineno))
|
||||
|
||||
Reference in New Issue
Block a user