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
isaak yansane-sisk
slapos.buildout
Commits
cf80a8bd
Commit
cf80a8bd
authored
Aug 03, 2011
by
Lucas Carvalho
Committed by
Łukasz Nowak
Aug 25, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes applied to fix the networkcache.txt
The changes were made in the previous commit: -
75a7c904
parent
5b1f191e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/zc/buildout/networkcache.py
src/zc/buildout/networkcache.py
+5
-1
No files found.
src/zc/buildout/networkcache.py
View file @
cf80a8bd
...
@@ -137,9 +137,13 @@ def get_filename_from_url(url):
...
@@ -137,9 +137,13 @@ def get_filename_from_url(url):
"""Inspired how pip get filename from url.
"""Inspired how pip get filename from url.
"""
"""
url
=
url
.
split
(
'#'
,
1
)[
0
]
url
=
url
.
split
(
'#'
,
1
)[
0
]
url
=
url
.
split
(
'?'
,
1
)[
0
]
url
=
url
.
rstrip
(
'/'
)
url
=
url
.
rstrip
(
'/'
)
name
=
posixpath
.
basename
(
url
)
name
=
posixpath
.
basename
(
url
)
name_split_list
=
name
.
split
(
'?'
,
1
)
if
name_split_list
[
0
]:
name
=
name_split_list
[
0
]
else
:
name
=
name_split_list
[
1
]
assert
name
,
(
assert
name
,
(
'URL %r produced no filename'
%
url
)
'URL %r produced no filename'
%
url
)
return
name
return
name
...
...
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