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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
slapos.buildout
Commits
722dbd53
Commit
722dbd53
authored
Aug 03, 2011
by
Lucas Carvalho
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
75a7c904
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 @
722dbd53
...
...
@@ -137,9 +137,13 @@ def get_filename_from_url(url):
"""Inspired how pip get filename from url.
"""
url
=
url
.
split
(
'#'
,
1
)[
0
]
url
=
url
.
split
(
'?'
,
1
)[
0
]
url
=
url
.
rstrip
(
'/'
)
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
,
(
'URL %r produced no filename'
%
url
)
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