From 31bc4f1f22333a7553aaa4fe7b46e5771b26c597 Mon Sep 17 00:00:00 2001 From: Zhang Qiang Date: Wed, 12 Mar 2014 17:58:12 +0800 Subject: [PATCH] bugfix: check the existance of specified package dir Change-Id: I367fb10aa4cad247711ea797a2c6c5c398f03555 --- gitbuildsys/utils.py | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.34.1