diff options
author | Zhang Qiang <qiang.z.zhang@intel.com> | 2012-01-04 16:03:45 +0800 |
---|---|---|
committer | Zhang Qiang <qiang.z.zhang@intel.com> | 2012-01-04 16:03:45 +0800 |
commit | ef11fef7ecdd0c6cef14fbbf245b2ce93c523bc1 (patch) | |
tree | 89650e2959f2c0d622f29687f72791ba1647e8f2 | |
parent | 2e75c0fd927836064046fb52a40b1d30eab49d6e (diff) | |
download | mic-ef11fef7ecdd0c6cef14fbbf245b2ce93c523bc1.tar.gz mic-ef11fef7ecdd0c6cef14fbbf245b2ce93c523bc1.tar.bz2 mic-ef11fef7ecdd0c6cef14fbbf245b2ce93c523bc1.zip |
Check existance of local packages dir
-rw-r--r-- | mic/creator.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mic/creator.py b/mic/creator.py index a55132e..5b28deb 100644 --- a/mic/creator.py +++ b/mic/creator.py @@ -156,6 +156,9 @@ class Creator(cmdln.Cmdln): configmgr.create['cachedir'] = self.options.cachedir os.environ['ZYPP_LOCKFILE_ROOT'] = configmgr.create['cachedir'] if self.options.local_pkgs_path is not None: + if not os.path.exists(self.options.local_pkgs_path): + msger.error('Local pkgs directory: \'%s\' not exist' \ + % self.options.local_pkgs_path) configmgr.create['local_pkgs_path'] = self.options.local_pkgs_path if self.options.release: |