Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos-caddy
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Guillaume Hervier
slapos-caddy
Commits
2cd4c6a5
Commit
2cd4c6a5
authored
Jul 03, 2014
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stork: fix file name error
parent
b54e9b2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
slapos/recipe/stork/__init__.py
slapos/recipe/stork/__init__.py
+3
-3
No files found.
slapos/recipe/stork/__init__.py
View file @
2cd4c6a5
...
...
@@ -191,13 +191,13 @@ class AppSubmit(GenericBaseRecipe):
# XXX - Simply, we don't want to download file twice with stork,
# skip file if it already exists at dest_url (only for file:path)
for
filename
in
file_list
:
log
_name
=
filename
download
_name
=
filename
if
dest_url
.
startswith
(
'file:'
):
destination
=
os
.
path
.
join
(
dest_url
.
replace
(
'file:'
,
''
),
filename
)
if
os
.
path
.
exists
(
destination
+
'_part'
)
or
os
.
path
.
exists
(
destination
):
continue
download_dest_list
[
filename
]
=
destination
file
name
=
filename
+
'_part'
download_
name
=
filename
+
'_part'
stork_file
.
write
(
"""[
src_url="%s";
dest_url="%s/%s";
...
...
@@ -207,7 +207,7 @@ dap_type = "transfer";
set_permission = "600" ;
]
"""
%
(
file_list
[
filename
],
dest_url
,
filename
,
log_name
,
log_
name
)
"""
%
(
file_list
[
filename
],
dest_url
,
download_name
,
filename
,
file
name
)
)
parameter
=
dict
(
submit
=
stork_submit
,
...
...
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