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
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.recipe.build
Commits
1046b48f
Commit
1046b48f
authored
Dec 27, 2021
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
default: make 'self.download' use url&md5sum options if called without url
parent
a1e0d26e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
README.rst
README.rst
+1
-1
slapos/recipe/build/__init__.py
slapos/recipe/build/__init__.py
+2
-0
No files found.
README.rst
View file @
1046b48f
...
@@ -27,7 +27,7 @@ Example that installs software::
...
@@ -27,7 +27,7 @@ Example that installs software::
url = http://host/path/foo.tar.gz
url = http://host/path/foo.tar.gz
md5sum = ...
md5sum = ...
install =
install =
extract_dir = self.extract(self.download(
options['url'], options['md5sum']
))
extract_dir = self.extract(self.download())
self.copyTree(guessworkdir(extract_dir), location)
self.copyTree(guessworkdir(extract_dir), location)
${:update}
${:update}
update =
update =
...
...
slapos/recipe/build/__init__.py
View file @
1046b48f
...
@@ -143,6 +143,8 @@ class Script(EnvironMixin):
...
@@ -143,6 +143,8 @@ class Script(EnvironMixin):
'
\
n
'
.
join
(
promise_problem_list
))
'
\
n
'
.
join
(
promise_problem_list
))
def
download
(
self
,
*
args
,
**
kw
):
def
download
(
self
,
*
args
,
**
kw
):
if
not
(
args
or
'url'
in
kw
):
args
=
self
.
options
[
'url'
],
self
.
options
.
get
(
'md5sum'
)
or
None
path
,
is_temp
=
zc
.
buildout
.
download
.
Download
(
self
.
buildout
[
'buildout'
],
path
,
is_temp
=
zc
.
buildout
.
download
.
Download
(
self
.
buildout
[
'buildout'
],
hash_name
=
True
)(
*
args
,
**
kw
)
hash_name
=
True
)(
*
args
,
**
kw
)
if
is_temp
:
if
is_temp
:
...
...
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