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
1
Merge Requests
1
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
Romain Courteaud
slapos.core
Commits
f4e4808b
Commit
f4e4808b
authored
Dec 20, 2012
by
Marco Mariani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build output with ''.join
parent
d3e7de70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
slapos/grid/utils.py
slapos/grid/utils.py
+3
-2
No files found.
slapos/grid/utils.py
View file @
f4e4808b
...
@@ -101,15 +101,16 @@ class SlapPopen(subprocess.Popen):
...
@@ -101,15 +101,16 @@ class SlapPopen(subprocess.Popen):
logger
=
logging
.
getLogger
(
'SlapProcessManager'
)
logger
=
logging
.
getLogger
(
'SlapProcessManager'
)
# XXX-Cedric: this algorithm looks overkill for simple logging.
# XXX-Cedric: this algorithm looks overkill for simple logging.
self
.
output
=
''
output_lines
=
[]
while
True
:
while
True
:
line
=
self
.
stdout
.
readline
()
line
=
self
.
stdout
.
readline
()
if
line
==
''
and
self
.
poll
()
!=
None
:
if
line
==
''
and
self
.
poll
()
!=
None
:
break
break
self
.
output
=
self
.
output
+
line
output_lines
.
append
(
line
)
if
line
[
-
1
:]
==
'
\
n
'
:
if
line
[
-
1
:]
==
'
\
n
'
:
line
=
line
[:
-
1
]
line
=
line
[:
-
1
]
logger
.
info
(
line
)
logger
.
info
(
line
)
self
.
output
=
''
.
join
(
output_lines
)
def
getSoftwareUrlHash
(
url
):
def
getSoftwareUrlHash
(
url
):
return
md5
(
url
).
hexdigest
()
return
md5
(
url
).
hexdigest
()
...
...
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