wic: eliminate module checks
We're removing all external dependencies including rpm and urlgrabber, so we don't need this check. (From OE-Core master rev: 429c0d72b9b8bfed34832e283be92996e074b9ac) (From OE-Core rev: 898285fbe172e0e77f0986be8f5187f86bfca95b) Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
3bcd49dddf
commit
7a5e6c4ec9
10
scripts/wic
10
scripts/wic
|
@ -38,16 +38,6 @@ import optparse
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
# External modules
|
# External modules
|
||||||
try:
|
|
||||||
import rpm
|
|
||||||
import urlgrabber
|
|
||||||
except ImportError:
|
|
||||||
print("ERROR: failed to import necessary modules.")
|
|
||||||
print("Please ensure the following modules are installed:")
|
|
||||||
print("\trpm");
|
|
||||||
print("\turlgrabber");
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
scripts_path = os.path.abspath(os.path.dirname(os.path.abspath(sys.argv[0])))
|
scripts_path = os.path.abspath(os.path.dirname(os.path.abspath(sys.argv[0])))
|
||||||
lib_path = scripts_path + '/lib'
|
lib_path = scripts_path + '/lib'
|
||||||
sys.path = sys.path + [lib_path]
|
sys.path = sys.path + [lib_path]
|
||||||
|
|
Loading…
Reference in New Issue