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
Łukasz Nowak
slapos.buildout
Commits
b1c0b028
Commit
b1c0b028
authored
May 05, 2011
by
Lucas Carvalho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed useless method, since network cache works with SHA256 instead of MD5.
Signed-off-by:
Lucas Carvalho
<
lucas@nexedi.com
>
parent
8502df5b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
src/zc/buildout/networkcache.py
src/zc/buildout/networkcache.py
+0
-10
No files found.
src/zc/buildout/networkcache.py
View file @
b1c0b028
...
...
@@ -21,13 +21,6 @@ import base64
import
hashlib
import
json
_md5_re
=
re
.
compile
(
r'md5=([a-f0-9]+)'
)
def
_get_md5_from_url
(
url
):
match
=
_md5_re
.
search
(
url
)
if
match
:
return
match
.
group
(
1
)
return
None
def
_get_hash_from_file
(
path
,
hash_object
):
"""
...
...
@@ -187,9 +180,6 @@ def fetch_from_network_cache(network_cache, location, tmp, logger=None):
if
network_cache
in
(
None
,
''
):
return
None
# Make a id from URL
md5sum
=
_get_md5_from_url
(
location
)
filename
=
_get_filename_from_url
(
location
)
path
=
os
.
path
.
join
(
tmp
,
filename
)
...
...
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