projects
/
tools
/
gbs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e8f0ac
)
bugfix: check the existance of specified package dir
author
Zhang Qiang
<qiang.z.zhang@intel.com>
Wed, 12 Mar 2014 09:58:12 +0000
(17:58 +0800)
committer
Zhang Qiang
<qiang.z.zhang@intel.com>
Wed, 12 Mar 2014 09:59:17 +0000
(17:59 +0800)
Change-Id: I367fb10aa4cad247711ea797a2c6c5c398f03555
gitbuildsys/utils.py
patch
|
blob
|
history
diff --git
a/gitbuildsys/utils.py
b/gitbuildsys/utils.py
index 1c2510a42c852247aad5865f99360b366c623470..b7857c32d8610d54dac142be3975d40c69dc832f 100644
(file)
--- 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