summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorTom Zanussi <tom.zanussi@linux.intel.com>2013-10-22 09:23:57 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-12-12 16:59:59 +0000
commit7a5e6c4ec93793f0a16cc0bb0c8aa40283448b7d (patch)
treed72637f5baf5f13f88efecc31fd2c116eda24c3d /scripts
parent3bcd49dddfe7526ec7cea5c0f2912365dec897f7 (diff)
downloadpoky-7a5e6c4ec93793f0a16cc0bb0c8aa40283448b7d.tar.gz
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>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/wic10
1 files changed, 0 insertions, 10 deletions
diff --git a/scripts/wic b/scripts/wic
index 08473d3df4..b6fd16c5df 100755
--- a/scripts/wic
+++ b/scripts/wic
@@ -38,16 +38,6 @@ import optparse
38import logging 38import logging
39 39
40# External modules 40# External modules
41try:
42 import rpm
43 import urlgrabber
44except ImportError:
45 print("ERROR: failed to import necessary modules.")
46 print("Please ensure the following modules are installed:")
47 print("\trpm");
48 print("\turlgrabber");
49 sys.exit(1)
50
51scripts_path = os.path.abspath(os.path.dirname(os.path.abspath(sys.argv[0]))) 41scripts_path = os.path.abspath(os.path.dirname(os.path.abspath(sys.argv[0])))
52lib_path = scripts_path + '/lib' 42lib_path = scripts_path + '/lib'
53sys.path = sys.path + [lib_path] 43sys.path = sys.path + [lib_path]