Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
slapos.core
Commits
6fa65588
Commit
6fa65588
authored
Oct 28, 2019
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
grid: remove temporary directory if an exception happens while setting its ownership
parent
a224be6c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
slapos/grid/SlapObject.py
slapos/grid/SlapObject.py
+3
-3
No files found.
slapos/grid/SlapObject.py
View file @
6fa65588
...
@@ -260,11 +260,11 @@ class Software(object):
...
@@ -260,11 +260,11 @@ class Software(object):
os
.
chmod
(
self
.
software_path
,
0o755
)
os
.
chmod
(
self
.
software_path
,
0o755
)
self
.
_set_ownership
(
self
.
software_path
)
self
.
_set_ownership
(
self
.
software_path
)
f
=
None
extends_cache
=
tempfile
.
mkdtemp
()
extends_cache
=
tempfile
.
mkdtemp
()
try
:
self
.
_set_ownership
(
extends_cache
)
self
.
_set_ownership
(
extends_cache
)
f
=
None
try
:
buildout_cfg
=
os
.
path
.
join
(
self
.
software_path
,
'buildout.cfg'
)
buildout_cfg
=
os
.
path
.
join
(
self
.
software_path
,
'buildout.cfg'
)
if
not
os
.
path
.
exists
(
buildout_cfg
):
if
not
os
.
path
.
exists
(
buildout_cfg
):
self
.
_create_buildout_profile
(
buildout_cfg
,
self
.
url
,
self
.
shared_part_list
)
self
.
_create_buildout_profile
(
buildout_cfg
,
self
.
url
,
self
.
shared_part_list
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment