projects
/
platform
/
upstream
/
mic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e75c0f
)
Check existance of local packages dir
author
Zhang Qiang
<qiang.z.zhang@intel.com>
Wed, 4 Jan 2012 08:03:45 +0000
(16:03 +0800)
committer
Zhang Qiang
<qiang.z.zhang@intel.com>
Wed, 4 Jan 2012 08:03:45 +0000
(16:03 +0800)
mic/creator.py
patch
|
blob
|
history
diff --git
a/mic/creator.py
b/mic/creator.py
index
a55132e
..
5b28deb
100644
(file)
--- 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: