Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
csppfetch
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cspp_geo
csppfetch
Commits
97131c23
Commit
97131c23
authored
3 years ago
by
Alan De Smet
Browse files
Options
Downloads
Patches
Plain Diff
download_for_scan returns list of final files
parent
e90b2796
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
csppfetch/__init__.py
+6
-2
6 additions, 2 deletions
csppfetch/__init__.py
with
6 additions
and
2 deletions
csppfetch/__init__.py
+
6
−
2
View file @
97131c23
...
...
@@ -781,6 +781,8 @@ class Downloader:
statistics
:
type
download_stats
:
None
or
csppfetch
.
DownloadStatistics
:return: list of strings to downloaded files
"""
base_urls
=
self
.
get_base_urls
()
...
...
@@ -817,7 +819,7 @@ class Downloader:
# since any exceptions will retry downloads
# when we already have the files!
pass
return
True
return
full_urls_to_file
.
values
()
except
Exception
as
e
:
problems
.
append
(
f
"
Failed to download file set
{
description
}
:
{
str
(
e
)
}
"
)
if
attempt
!=
retries
:
...
...
@@ -850,6 +852,8 @@ class Downloader:
download statistics
:type download_stats: None or csppfetch.DownloadStatistics
:return: list of strings to downloaded files
**timeout**, **retries**, and **retry_wait** are overriddeen by environment
variables ``package_env_id+TIMEOUT/RETRIES/RETRY_WAIT``
...
...
@@ -860,7 +864,7 @@ class Downloader:
timeout
=
self
.
get_timeout
(
timeout
)
retries
=
self
.
get_retries
(
retries
)
retry_wait
=
self
.
get_retry_wait
(
retry_wait
)
self
.
download_first_available
(
filesets
,
dst
,
timeout
=
timeout
,
retries
=
retries
,
retry_wait
=
retry_wait
,
do_download
=
do_download
,
download_stats
=
download_stats
)
return
self
.
download_first_available
(
filesets
,
dst
,
timeout
=
timeout
,
retries
=
retries
,
retry_wait
=
retry_wait
,
do_download
=
do_download
,
download_stats
=
download_stats
)
def
update_cache
(
self
,
dst
,
start_time
=
None
,
end_time
=
None
,
timeout
=
30
,
download_stats
=
None
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment