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
829b94ae
Commit
829b94ae
authored
Sep 03, 2012
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix lazy server implementation cuz client is less forgiving in 3.3
parent
029469b5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
12 deletions
+15
-12
src/zc/buildout/dependencylinks.txt
src/zc/buildout/dependencylinks.txt
+1
-2
src/zc/buildout/downloadcache.txt
src/zc/buildout/downloadcache.txt
+1
-2
src/zc/buildout/easy_install.txt
src/zc/buildout/easy_install.txt
+2
-4
src/zc/buildout/testing.py
src/zc/buildout/testing.py
+11
-4
No files found.
src/zc/buildout/dependencylinks.txt
View file @
829b94ae
...
@@ -21,9 +21,8 @@ testing repository.
...
@@ -21,9 +21,8 @@ testing repository.
Turn on logging on this server so that we can see when eggs are pulled
Turn on logging on this server so that we can see when eggs are pulled
from it.
from it.
>>> get(link_server2 + 'enable_server_logging')
>>>
_ =
get(link_server2 + 'enable_server_logging')
GET 200 /enable_server_logging
GET 200 /enable_server_logging
''
Let's create a develop egg in our buildout that specifies
Let's create a develop egg in our buildout that specifies
dependency_links which point to the new server.
dependency_links which point to the new server.
...
...
src/zc/buildout/downloadcache.txt
View file @
829b94ae
...
@@ -50,9 +50,8 @@ download:
...
@@ -50,9 +50,8 @@ download:
We'll enable logging on the link server so we can see what's going on:
We'll enable logging on the link server so we can see what's going on:
>>> get(link_server+'enable_server_logging')
>>>
_ =
get(link_server+'enable_server_logging')
GET 200 /enable_server_logging
GET 200 /enable_server_logging
''
We also specified a download cache.
We also specified a download cache.
...
...
src/zc/buildout/easy_install.txt
View file @
829b94ae
...
@@ -376,9 +376,8 @@ We have a link server that has a number of eggs:
...
@@ -376,9 +376,8 @@ We have a link server that has a number of eggs:
Turn on logging on this server so that we can see when eggs are pulled
Turn on logging on this server so that we can see when eggs are pulled
from it.
from it.
>>> get(link_server2 + 'enable_server_logging')
>>>
_ =
get(link_server2 + 'enable_server_logging')
GET 200 /enable_server_logging
GET 200 /enable_server_logging
''
Now we can create an egg that specifies that its dependencies are
Now we can create an egg that specifies that its dependencies are
found on this server.
found on this server.
...
@@ -1192,9 +1191,8 @@ We have a link server that has a number of eggs:
...
@@ -1192,9 +1191,8 @@ We have a link server that has a number of eggs:
We'd like to see what is being fetched from the server, so we'll
We'd like to see what is being fetched from the server, so we'll
enable server logging:
enable server logging:
>>> get(link_server+'enable_server_logging')
>>>
_ =
get(link_server+'enable_server_logging')
GET 200 /enable_server_logging
GET 200 /enable_server_logging
''
Now, if we install demo, and extdemo:
Now, if we install demo, and extdemo:
...
...
src/zc/buildout/testing.py
View file @
829b94ae
...
@@ -311,15 +311,21 @@ class Handler(BaseHTTPRequestHandler):
...
@@ -311,15 +311,21 @@ class Handler(BaseHTTPRequestHandler):
if
'__stop__'
in
self
.
path
:
if
'__stop__'
in
self
.
path
:
raise
SystemExit
raise
SystemExit
def
k
():
self
.
send_response
(
200
)
out
=
'<html><body>k</body></html>
\
n
'
.
encode
()
self
.
send_header
(
'Content-Length'
,
str
(
len
(
out
)))
self
.
send_header
(
'Content-Type'
,
'text/html'
)
self
.
end_headers
()
self
.
wfile
.
write
(
out
)
if
self
.
path
==
'/enable_server_logging'
:
if
self
.
path
==
'/enable_server_logging'
:
self
.
__server
.
__log
=
True
self
.
__server
.
__log
=
True
self
.
send_response
(
200
)
return
k
()
return
if
self
.
path
==
'/disable_server_logging'
:
if
self
.
path
==
'/disable_server_logging'
:
self
.
__server
.
__log
=
False
self
.
__server
.
__log
=
False
self
.
send_response
(
200
)
return
k
()
return
path
=
os
.
path
.
abspath
(
os
.
path
.
join
(
self
.
tree
,
*
self
.
path
.
split
(
'/'
)))
path
=
os
.
path
.
abspath
(
os
.
path
.
join
(
self
.
tree
,
*
self
.
path
.
split
(
'/'
)))
if
not
(
if
not
(
...
@@ -361,6 +367,7 @@ class Handler(BaseHTTPRequestHandler):
...
@@ -361,6 +367,7 @@ class Handler(BaseHTTPRequestHandler):
self
.
send_header
(
'Content-Type'
,
'application/x-gzip'
)
self
.
send_header
(
'Content-Type'
,
'application/x-gzip'
)
else
:
else
:
self
.
send_header
(
'Content-Type'
,
'text/html'
)
self
.
send_header
(
'Content-Type'
,
'text/html'
)
self
.
end_headers
()
self
.
end_headers
()
self
.
wfile
.
write
(
out
)
self
.
wfile
.
write
(
out
)
...
...
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