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.build
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
Ayush Tiwari
slapos.recipe.build
Commits
7eca74fe
Commit
7eca74fe
authored
Jul 31, 2018
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
option is string type
parent
8de6357b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
slapos/recipe/download.py
slapos/recipe/download.py
+1
-2
slapos/recipe/downloadunpacked.py
slapos/recipe/downloadunpacked.py
+1
-1
No files found.
slapos/recipe/download.py
View file @
7eca74fe
...
...
@@ -43,6 +43,7 @@ class Recipe(object):
self
.
_name
=
name
mode
=
options
.
get
(
'mode'
)
log
=
logging
.
getLogger
(
name
)
self
.
_shared
=
shared
=
(
options
.
get
(
'shared'
,
''
).
lower
()
==
'true'
)
if
mode
is
not
None
:
mode
=
int
(
mode
,
8
)
self
.
_mode
=
mode
...
...
@@ -52,8 +53,6 @@ class Recipe(object):
destination
=
options
.
get
(
'destination'
,
None
)
if
destination
is
None
:
shared
=
options
.
get
(
'shared'
)
self
.
_shared
=
shared
if
shared
:
shared_part
=
buildout
[
'buildout'
].
get
(
'shared-part'
,
None
)
if
not
shared_part
:
...
...
slapos/recipe/downloadunpacked.py
View file @
7eca74fe
...
...
@@ -48,7 +48,7 @@ class Recipe:
'exclusive.'
)
self
.
parts
=
None
self
.
destination
=
self
.
options
.
get
(
'destination'
,
None
)
self
.
shared
=
shared
=
options
.
get
(
'shared'
,
''
)
self
.
shared
=
shared
=
is_true
(
options
.
get
(
'shared'
,
''
).
lower
()
)
if
self
.
destination
is
None
:
if
shared
:
shared_part
=
buildout
[
'buildout'
].
get
(
'shared-part'
,
None
)
...
...
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