fix local-pkgs-path not exist when using bootstrap
authorGui Chen <gui.chen@intel.com>
Mon, 13 Feb 2012 03:08:09 +0000 (11:08 +0800)
committerGui Chen <gui.chen@intel.com>
Mon, 13 Feb 2012 03:08:09 +0000 (11:08 +0800)
Signed-off-by: Gui Chen <gui.chen@intel.com>
mic/rt_util.py

index 5c44060..2f39db4 100644 (file)
@@ -156,8 +156,10 @@ def runmic_in_bootstrap(name, argv, opts, ksfile, repolist):
     if opts['logfile']:
         logfile = os.path.abspath(os.path.expanduser(opts['logfile']))
         lst.append(os.path.dirname(logfile))
+    if opts['local_pkgs_path']:
+        lppdir = os.path.abspath(os.path.expanduser(opts['local_pkgs_path']))
+        lst.append(lppdir)
 
-    # TBD local package path
     # TBD local repo
 
     # make unique and remain the original order