mirror of
https://git.yoctoproject.org/poky
synced 2026-07-21 05:27:01 +00:00
wic: move WicError to lib/wic/__init__.py
Removed unused exceptions from error.py Moved definition of WicError to lib/wic/__init__.py (From OE-Core rev: 15442d072bb6d93bd9b941726f93262503053da5) 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
af17aa91b3
commit
f8a4bd9950
@@ -0,0 +1,20 @@
|
|||||||
|
#!/usr/bin/env python -tt
|
||||||
|
#
|
||||||
|
# Copyright (c) 2007 Red Hat, Inc.
|
||||||
|
# Copyright (c) 2011 Intel, Inc.
|
||||||
|
#
|
||||||
|
# This program is free software; you can redistribute it and/or modify it
|
||||||
|
# under the terms of the GNU General Public License as published by the Free
|
||||||
|
# Software Foundation; version 2 of the License
|
||||||
|
#
|
||||||
|
# This program is distributed in the hope that it will be useful, but
|
||||||
|
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||||
|
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||||
|
# for more details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License along
|
||||||
|
# with this program; if not, write to the Free Software Foundation, Inc., 59
|
||||||
|
# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
|
class WicError(Exception):
|
||||||
|
pass
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from wic.errors import WicError
|
from wic import WicError
|
||||||
from wic.plugin import pluginmgr
|
from wic.plugin import pluginmgr
|
||||||
from wic.utils.misc import get_bitbake_var
|
from wic.utils.misc import get_bitbake_var
|
||||||
|
|
||||||
|
|||||||
@@ -1,29 +0,0 @@
|
|||||||
#!/usr/bin/env python -tt
|
|
||||||
#
|
|
||||||
# Copyright (c) 2007 Red Hat, Inc.
|
|
||||||
# Copyright (c) 2011 Intel, Inc.
|
|
||||||
#
|
|
||||||
# This program is free software; you can redistribute it and/or modify it
|
|
||||||
# under the terms of the GNU General Public License as published by the Free
|
|
||||||
# Software Foundation; version 2 of the License
|
|
||||||
#
|
|
||||||
# This program is distributed in the hope that it will be useful, but
|
|
||||||
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
||||||
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
||||||
# for more details.
|
|
||||||
#
|
|
||||||
# You should have received a copy of the GNU General Public License along
|
|
||||||
# with this program; if not, write to the Free Software Foundation, Inc., 59
|
|
||||||
# Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
||||||
|
|
||||||
class WicError(Exception):
|
|
||||||
pass
|
|
||||||
|
|
||||||
class CreatorError(WicError):
|
|
||||||
pass
|
|
||||||
|
|
||||||
class Usage(WicError):
|
|
||||||
pass
|
|
||||||
|
|
||||||
class ImageError(WicError):
|
|
||||||
pass
|
|
||||||
@@ -28,7 +28,7 @@ import logging
|
|||||||
import os
|
import os
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
from wic.errors import WicError
|
from wic import WicError
|
||||||
from wic.utils.misc import exec_cmd, exec_native_cmd, get_bitbake_var
|
from wic.utils.misc import exec_cmd, exec_native_cmd, get_bitbake_var
|
||||||
from wic.plugin import pluginmgr
|
from wic.plugin import pluginmgr
|
||||||
|
|
||||||
|
|||||||
@@ -19,8 +19,7 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from wic.errors import WicError
|
from wic import pluginbase, WicError
|
||||||
from wic import pluginbase
|
|
||||||
from wic.utils.misc import get_bitbake_var
|
from wic.utils.misc import get_bitbake_var
|
||||||
|
|
||||||
__ALL__ = ['PluginMgr', 'pluginmgr']
|
__ALL__ = ['PluginMgr', 'pluginmgr']
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ import uuid
|
|||||||
|
|
||||||
from time import strftime
|
from time import strftime
|
||||||
|
|
||||||
from wic.errors import WicError
|
from wic import WicError
|
||||||
from wic.filemap import sparse_copy
|
from wic.filemap import sparse_copy
|
||||||
from wic.ksparser import KickStart, KickStartError
|
from wic.ksparser import KickStart, KickStartError
|
||||||
from wic.plugin import pluginmgr
|
from wic.plugin import pluginmgr
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ import logging
|
|||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
from wic.errors import WicError
|
from wic import WicError
|
||||||
from wic.engine import get_custom_config
|
from wic.engine import get_custom_config
|
||||||
from wic.pluginbase import SourcePlugin
|
from wic.pluginbase import SourcePlugin
|
||||||
from wic.utils.misc import (exec_cmd, exec_native_cmd, get_bitbake_var,
|
from wic.utils.misc import (exec_cmd, exec_native_cmd, get_bitbake_var,
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ import re
|
|||||||
|
|
||||||
from glob import glob
|
from glob import glob
|
||||||
|
|
||||||
from wic.errors import WicError
|
from wic import WicError
|
||||||
from wic.pluginbase import SourcePlugin
|
from wic.pluginbase import SourcePlugin
|
||||||
from wic.utils.misc import exec_cmd, get_bitbake_var
|
from wic.utils.misc import exec_cmd, get_bitbake_var
|
||||||
|
|
||||||
|
|||||||
@@ -27,8 +27,8 @@
|
|||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
from wic import WicError
|
||||||
from wic.engine import get_custom_config
|
from wic.engine import get_custom_config
|
||||||
from wic.errors import WicError
|
|
||||||
from wic.utils import runner
|
from wic.utils import runner
|
||||||
from wic.pluginbase import SourcePlugin
|
from wic.pluginbase import SourcePlugin
|
||||||
from wic.utils.misc import (exec_cmd, exec_native_cmd,
|
from wic.utils.misc import (exec_cmd, exec_native_cmd,
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from wic.errors import WicError
|
from wic import WicError
|
||||||
from wic.pluginbase import SourcePlugin
|
from wic.pluginbase import SourcePlugin
|
||||||
from wic.utils.misc import get_bitbake_var
|
from wic.utils.misc import get_bitbake_var
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import os
|
|||||||
import re
|
import re
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
from wic.errors import WicError
|
from wic import WicError
|
||||||
from wic.engine import get_custom_config
|
from wic.engine import get_custom_config
|
||||||
from wic.pluginbase import SourcePlugin
|
from wic.pluginbase import SourcePlugin
|
||||||
from wic.utils.misc import exec_cmd, exec_native_cmd, get_bitbake_var
|
from wic.utils.misc import exec_cmd, exec_native_cmd, get_bitbake_var
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from wic.errors import WicError
|
from wic import WicError
|
||||||
from wic.pluginbase import SourcePlugin
|
from wic.pluginbase import SourcePlugin
|
||||||
from wic.utils.misc import exec_cmd, get_bitbake_var
|
from wic.utils.misc import exec_cmd, get_bitbake_var
|
||||||
from wic.filemap import sparse_copy
|
from wic.filemap import sparse_copy
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ import shutil
|
|||||||
|
|
||||||
from oe.path import copyhardlinktree
|
from oe.path import copyhardlinktree
|
||||||
|
|
||||||
from wic.errors import WicError
|
from wic import WicError
|
||||||
from wic.pluginbase import SourcePlugin
|
from wic.pluginbase import SourcePlugin
|
||||||
from wic.utils.misc import get_bitbake_var, exec_cmd
|
from wic.utils.misc import get_bitbake_var, exec_cmd
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import logging
|
|||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from wic.errors import WicError
|
from wic import WicError
|
||||||
from wic.utils import runner
|
from wic.utils import runner
|
||||||
from wic.utils.misc import get_bitbake_var, exec_cmd, exec_native_cmd
|
from wic.utils.misc import get_bitbake_var, exec_cmd, exec_native_cmd
|
||||||
from wic.pluginbase import SourcePlugin
|
from wic.pluginbase import SourcePlugin
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ import re
|
|||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
from distutils import spawn
|
from distutils import spawn
|
||||||
|
|
||||||
from wic.errors import WicError
|
from wic import WicError
|
||||||
from wic.utils import runner
|
from wic.utils import runner
|
||||||
|
|
||||||
logger = logging.getLogger('wic')
|
logger = logging.getLogger('wic')
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ import logging
|
|||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
from wic.errors import WicError
|
from wic import WicError
|
||||||
|
|
||||||
logger = logging.getLogger('wic')
|
logger = logging.getLogger('wic')
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -53,7 +53,7 @@ if bitbake_exe:
|
|||||||
else:
|
else:
|
||||||
bitbake_main = None
|
bitbake_main = None
|
||||||
|
|
||||||
from wic.errors import WicError
|
from wic import WicError
|
||||||
from wic.utils.misc import get_bitbake_var, BB_VARS
|
from wic.utils.misc import get_bitbake_var, BB_VARS
|
||||||
from wic import engine
|
from wic import engine
|
||||||
from wic import help as hlp
|
from wic import help as hlp
|
||||||
|
|||||||
Reference in New Issue
Block a user