buildbot: chmod

This commit is contained in:
JerryXiao 2019-09-06 16:22:58 +08:00
parent 0709c337c4
commit f2aa672ec4
Signed by: Jerry
GPG key ID: 9D9CE43650FF2BAA

View file

@ -105,6 +105,8 @@ class jobsManager:
for fpath in [f for f in cwd.iterdir()]: for fpath in [f for f in cwd.iterdir()]:
if fpath.is_dir() and \ if fpath.is_dir() and \
fpath.name in ('pkg', 'src'): fpath.name in ('pkg', 'src'):
if fpath.name == 'pkg':
fpath.chmod(0o0755)
rmtree(fpath) rmtree(fpath)
elif rmpkg and fpath.is_file() and \ elif rmpkg and fpath.is_file() and \
(fpath.name.endswith(PKG_SUFFIX) or \ (fpath.name.endswith(PKG_SUFFIX) or \