Patchwork [02/10] wic: eliminate module checks

login
register
mail settings
Submitter tom.zanussi@linux.intel.com
Date Oct. 22, 2013, 2:23 p.m.
Message ID <0c85ec038e7d922dffe4dd8cf69c8ebf7df29b06.1382451106.git.tom.zanussi@linux.intel.com>
Download mbox | patch
Permalink /patch/60363/
State Accepted
Commit db034f07bfc47d930e68f967e0fb1f4516aae889
Headers show

Comments

tom.zanussi@linux.intel.com - Oct. 22, 2013, 2:23 p.m.
We're removing all external dependencies including rpm and urlgrabber,
so we don't need this check.

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
---
 scripts/wic | 10 ----------
 1 file changed, 10 deletions(-)

Patch

diff --git a/scripts/wic b/scripts/wic
index 08473d3..b6fd16c 100755
--- a/scripts/wic
+++ b/scripts/wic
@@ -38,16 +38,6 @@  import optparse
 import logging
 
 # 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])))
 lib_path = scripts_path + '/lib'
 sys.path = sys.path + [lib_path]