Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
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
Commits
c8245829
Commit
c8245829
authored
Sep 10, 2021
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
recipe/promise_plugin: Add extra-paths option
parent
99cf4bfd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
slapos/recipe/promise_plugin.py
slapos/recipe/promise_plugin.py
+11
-1
No files found.
slapos/recipe/promise_plugin.py
View file @
c8245829
...
@@ -127,8 +127,18 @@ class Recipe(GenericBaseRecipe):
...
@@ -127,8 +127,18 @@ class Recipe(GenericBaseRecipe):
for
key
in
self
.
options
for
key
in
self
.
options
if
key
.
startswith
(
'config-'
)}
if
key
.
startswith
(
'config-'
)}
sys_paths
=
[
dist
.
location
for
dist
in
working_set
]
extra_paths
=
self
.
options
.
get
(
'extra-paths'
)
if
extra_paths
:
for
p
in
extra_paths
.
splitlines
():
p
=
p
.
strip
()
if
p
:
if
not
os
.
path
.
isdir
(
p
):
raise
ValueError
(
"Invalid extra path %s"
%
p
)
sys_paths
.
append
(
p
)
return
self
.
createFile
(
self
.
options
[
'output'
],
script_template
%
{
return
self
.
createFile
(
self
.
options
[
'output'
],
script_template
%
{
'path'
:
pformat
(
[
dist
.
location
for
dist
in
working_set
]
,
indent
=
2
),
'path'
:
pformat
(
sys_paths
,
indent
=
2
),
'content'
:
content_string
,
'content'
:
content_string
,
'config'
:
pformat
(
config_dict
,
indent
=
2
),
'config'
:
pformat
(
config_dict
,
indent
=
2
),
},
int
(
self
.
options
.
get
(
'mode'
,
'0644'
),
8
)),
},
int
(
self
.
options
.
get
(
'mode'
,
'0644'
),
8
)),
...
...
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