From: Zhang Qiang Date: Wed, 4 Jan 2012 08:03:45 +0000 (+0800) Subject: Check existance of local packages dir X-Git-Tag: 0.4~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef11fef7ecdd0c6cef14fbbf245b2ce93c523bc1;p=platform%2Fupstream%2Fmic.git Check existance of local packages dir --- 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: