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:
56daf44
)
check existance of project dir before checking accesss mode
author
Zhang Qiang
<qiang.z.zhang@intel.com>
Fri, 8 Jun 2012 22:48:56 +0000
(06:48 +0800)
committer
Zhang Qiang
<qiang.z.zhang@intel.com>
Fri, 8 Jun 2012 22:48:56 +0000
(06:48 +0800)
gitbuildsys/cmd_remotebuild.py
patch
|
blob
|
history
diff --git
a/gitbuildsys/cmd_remotebuild.py
b/gitbuildsys/cmd_remotebuild.py
index 93f5fc781a57bcd6d903db9092f457c0f32f6361..98bafe409f5acb8483939ccb77062f64e9893c56 100644
(file)
--- a/
gitbuildsys/cmd_remotebuild.py
+++ b/
gitbuildsys/cmd_remotebuild.py
@@
-123,7
+123,8
@@
def do(opts, args):
msger.info('checking out %s/%s to %s ...' % (target_prj, spec.name, tmpdir))
target_prj_path = os.path.join(tmpdir, target_prj)
- if not os.access(target_prj_path, os.W_OK|os.R_OK|os.X_OK):
+ if os.path.exists(target_prj_path) and \
+ not os.access(target_prj_path, os.W_OK|os.R_OK|os.X_OK):
msger.error('No access permission to %s, please check' % target_prj_path)
localpkg = obspkg.ObsPackage(tmpdir, target_prj, spec.name,