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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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]