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
a4f4b49f
Commit
a4f4b49f
authored
Jun 21, 2011
by
Lucas Carvalho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed useless method.
parent
e03925d0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
src/zc/buildout/networkcache.py
src/zc/buildout/networkcache.py
+0
-19
No files found.
src/zc/buildout/networkcache.py
View file @
a4f4b49f
...
...
@@ -46,25 +46,6 @@ def get_directory_key(url):
return
'pypi-buildout-%s'
%
urlmd5
return
'slapos-buildout-%s'
%
urlmd5
def
select_sha512sum_from_shadir
(
sha_dir
,
url
,
logger
):
"""It must return the sha512sum if exists on selected directory. """
directory_key
=
get_directory_key
(
url
)
try
:
nc
=
NetworkcacheClient
(
shadir
=
sha_dir
)
data_list
=
nc
.
select
(
directory_key
)
except
(
IOError
,
DirectoryNotFound
,
MultipleFileFoundError
),
e
:
logger
.
info
(
'Could not retrieve the information from SHADIR. %s'
%
e
)
return
None
urlmd5
=
hashlib
.
md5
(
url
).
hexdigest
()
for
data
in
data_list
:
information_dict
,
signature
=
data
if
information_dict
.
get
(
'urlmd5'
)
==
urlmd5
:
return
information_dict
.
get
(
'sha512'
)
return
None
def
download_network_cached
(
sha_dir
,
sha_cache
,
path
,
url
,
logger
,
md5sum
=
None
):
"""Download from a network cache provider
...
...
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