Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.buildout
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
Yusei Tahara
slapos.buildout
Commits
f352bac9
Commit
f352bac9
authored
Jul 05, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use URLs instead of filenames.
URLs are important to being read, not files.
parent
f051d0be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/zc/buildout/networkcache.py
src/zc/buildout/networkcache.py
+4
-4
No files found.
src/zc/buildout/networkcache.py
View file @
f352bac9
...
...
@@ -68,9 +68,9 @@ def download_network_cached(dir_url, cache_url, path, url, logger, md5sum=None):
directory_key
=
get_directory_key
(
url
)
file_name
=
os
.
path
.
basename
(
url
)
url
=
os
.
path
.
basename
(
url
)
logger
.
info
(
'Downloading %s from network cache.'
%
file_name
)
logger
.
info
(
'Downloading %s from network cache.'
%
url
)
try
:
nc
=
NetworkcacheClient
(
shacache
=
cache_url
,
shadir
=
dir_url
)
file_descriptor
=
nc
.
select
(
directory_key
)
...
...
@@ -84,12 +84,12 @@ def download_network_cached(dir_url, cache_url, path, url, logger, md5sum=None):
file_descriptor
.
close
()
if
not
check_md5sum
(
path
,
md5sum
):
logger
.
info
(
'MD5 checksum mismatch downloading %s'
%
file_name
)
logger
.
info
(
'MD5 checksum mismatch downloading %s'
%
url
)
return
False
except
(
IOError
,
DirectoryNotFound
),
e
:
logger
.
info
(
'Failed to download from network cache %s: %s'
%
\
(
file_name
,
str
(
e
)))
(
url
,
str
(
e
)))
return
False
return
True
...
...
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