mirror of
https://github.com/archlinux-jerry/buildbot
synced 2024-12-05 03:10:41 +08:00
buildbot: chmod
This commit is contained in:
parent
0709c337c4
commit
f2aa672ec4
1 changed files with 2 additions and 0 deletions
|
@ -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 \
|
||||||
|
|
Loading…
Reference in a new issue