Permalink
Browse files

gh-406 - improper relative urls resolution

  • Loading branch information...
1 parent 128f15c commit 6bed8b23f3995fe14ca17144dedec338f19262b5 @nolar committed Dec 16, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 pip/req.py
View
2 pip/req.py
@@ -1246,7 +1246,7 @@ def parse_requirements(filename, finder=None, comes_from=None, options=None):
req_url = line[len('--requirement'):].strip().strip('=')
if _scheme_re.search(filename):
# Relative to a URL
- req_url = urlparse.urljoin(req_url, filename)
+ req_url = urlparse.urljoin(filename, req_url)
elif not _scheme_re.search(req_url):
req_url = os.path.join(os.path.dirname(filename), req_url)
for item in parse_requirements(req_url, finder, comes_from=filename, options=options):

0 comments on commit 6bed8b2

Please sign in to comment.