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
6
Merge Requests
6
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
slapos.buildout
Commits
fdfe33ca
Commit
fdfe33ca
authored
May 18, 2011
by
Lucas Carvalho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
we should pass the file content instead of the path to libnetworkcachee
parent
c69358f4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
src/zc/buildout/networkcache.py
src/zc/buildout/networkcache.py
+7
-1
No files found.
src/zc/buildout/networkcache.py
View file @
fdfe33ca
...
@@ -119,8 +119,14 @@ def upload_network_cached(network_cache, external_url, path, logger):
...
@@ -119,8 +119,14 @@ def upload_network_cached(network_cache, external_url, path, logger):
return
False
return
False
try
:
try
:
f
=
open
(
path
,
'r'
)
try
:
file_content
=
f
.
read
()
finally
:
f
.
close
()
nc
=
NetworkcacheClient
(
network_cache
)
nc
=
NetworkcacheClient
(
network_cache
)
result
=
nc
.
put
(
path
)
result
=
nc
.
put
(
file_content
)
if
result
.
status
==
200
:
if
result
.
status
==
200
:
_update_network_cached_log
(
path
,
external_url
)
_update_network_cached_log
(
path
,
external_url
)
...
...
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