Without this patch decoding a url of this kind file://dir/filename gives
path=/filename host=dir.
With the patch it decodes as path=/dir/filename host=""
Probably nobody stumbled on this issue yet because nobody used
file:// urls with directory names in the path.
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
>>> decodeurl("http://www.google.com/index.html")
('http', 'www.google.com', '/index.html', '', '', {})
+ >>> decodeurl("file://gas/COPYING")
+ ('file', '', 'gas/COPYING', '', '', {})
+
CVS url with username, host and cvsroot. The cvs module to check out is in the
parameters:
parm = m.group('parm')
locidx = location.find('/')
- if locidx != -1:
+ if locidx != -1 and type.lower() != 'file':
host = location[:locidx]
path = location[locidx:]
else: