[OE-core] [PATCH 02/10] wic: eliminate module checks
Tom Zanussi
tom.zanussi at linux.intel.com
Tue Oct 22 14:23:57 UTC 2013
We're removing all external dependencies including rpm and urlgrabber,
so we don't need this check.
Signed-off-by: Tom Zanussi <tom.zanussi at linux.intel.com>
---
scripts/wic | 10 ----------
1 file changed, 10 deletions(-)
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]
--
1.8.3.1
More information about the Openembedded-core
mailing list