From: Zhang Qiang Date: Wed, 12 Mar 2014 09:58:12 +0000 (+0800) Subject: bugfix: check the existance of specified package dir X-Git-Tag: 0.21~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=31bc4f1f22333a7553aaa4fe7b46e5771b26c597;p=tools%2Fgbs.git bugfix: check the existance of specified package dir Change-Id: I367fb10aa4cad247711ea797a2c6c5c398f03555 --- diff --git a/gitbuildsys/utils.py b/gitbuildsys/utils.py index 1c2510a..b7857c3 100644 --- a/gitbuildsys/utils.py +++ b/gitbuildsys/utils.py @@ -531,6 +531,11 @@ class SearchConfAction(argparse.Action): """ def __call__(self, parser, namespace, value, option_string=None): workdir = value + + if not os.path.exists(workdir): + raise GbsError("specified package dir %s does not exist" \ + % workdir) + try: repo = RpmGitRepository(value) workdir = repo.path