Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.recipe.cmmi
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.recipe.cmmi
Commits
7e417d69
Commit
7e417d69
authored
Aug 01, 2018
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use correctly log function
parent
41d13aa0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
slapos/recipe/cmmi/__init__.py
slapos/recipe/cmmi/__init__.py
+2
-2
No files found.
slapos/recipe/cmmi/__init__.py
View file @
7e417d69
...
@@ -68,7 +68,7 @@ class Recipe(object):
...
@@ -68,7 +68,7 @@ class Recipe(object):
m
.
update
(
option_signature
)
m
.
update
(
option_signature
)
shared
=
os
.
path
.
join
(
shared
,
m
.
hexdigest
())
shared
=
os
.
path
.
join
(
shared
,
m
.
hexdigest
())
log
.
info
(
'shared directory %s set for %s'
%
(
shared
,
self
.
name
)
)
log
.
info
(
'shared directory %s set for %s'
,
shared
,
self
.
name
)
options
[
'shared'
]
=
shared
options
[
'shared'
]
=
shared
default_location
=
options
[
'default-location'
]
=
os
.
path
.
join
(
default_location
=
options
[
'default-location'
]
=
os
.
path
.
join
(
...
@@ -286,7 +286,7 @@ class Recipe(object):
...
@@ -286,7 +286,7 @@ class Recipe(object):
# In shared mode, do nothing if package has been installed.
# In shared mode, do nothing if package has been installed.
if
(
not
self
.
options
[
'shared'
]
==
''
):
if
(
not
self
.
options
[
'shared'
]
==
''
):
log
.
info
(
'Checking whether package is installed at shared path: %s'
%
self
.
options
[
'shared'
])
log
.
info
(
'Checking whether package is installed at shared path: %s'
,
self
.
options
[
'shared'
])
if
os
.
path
.
exists
(
self
.
options
[
'shared'
]):
if
os
.
path
.
exists
(
self
.
options
[
'shared'
]):
log
.
info
(
'This shared package has been installed by other package'
)
log
.
info
(
'This shared package has been installed by other package'
)
return
parts
return
parts
...
...
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