Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
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
Xavier Thompson
slapos.toolbox
Commits
2032e7a5
Commit
2032e7a5
authored
Nov 29, 2013
by
Nicolas Wavrant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slaprunner: added protection in isSoftwareReleaseReady
to quit the function if software folder has been deleted
parent
6af951c9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
slapos/runner/utils.py
slapos/runner/utils.py
+4
-1
No files found.
slapos/runner/utils.py
View file @
2032e7a5
...
@@ -280,7 +280,10 @@ def config_SR_folder(config):
...
@@ -280,7 +280,10 @@ def config_SR_folder(config):
if
len
(
cfg
)
!=
2
:
if
len
(
cfg
)
!=
2
:
continue
# there is a broken config file
continue
# there is a broken config file
list
.
append
(
cfg
[
1
])
list
.
append
(
cfg
[
1
])
if
os
.
path
.
exists
(
config
[
'software_root'
]):
folder_list
=
os
.
listdir
(
config
[
'software_root'
])
folder_list
=
os
.
listdir
(
config
[
'software_root'
])
else
:
return
if
not
folder_list
:
if
not
folder_list
:
return
return
current_project
=
open
(
os
.
path
.
join
(
config
[
'etc_dir'
],
".project"
)).
read
()
current_project
=
open
(
os
.
path
.
join
(
config
[
'etc_dir'
],
".project"
)).
read
()
...
...
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