createrepo not creating URLs correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
createrepo (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
If the directory you wish to publish to contains characters that need to be escaped for a URL then create repo bombs out and will not work.
Linux ubuntu 3.19.0-15-generic #15-Ubuntu SMP Thu Apr 16 23:32:37 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Ubuntu 15.04
createrepo 0.10.3-1
e.g.
user@ubuntu:~$ createrepo --update -o "/home/
Traceback (most recent call last):
File "/usr/share/
main(
File "/usr/share/
mdgen.
File "/usr/lib/
self.
File "/usr/lib/
self.oldData = readMetadata.
File "/usr/lib/
self.
File "/usr/lib/
value, str(e)))
ValueError: Error parsing "baseurl = 'file:/
The code is obviously wrong...
/usr/lib/
self.
You can not assume that an abitrary directory can be converted to a URL by prepending with file:// - characters need to be escaped - this is the whole reason why URL handling functions exist - e.g. https:/
affects: | make-dfsg (Ubuntu) → createrepo (Ubuntu) |
Upstream bug filed here: https:/ /bugzilla. redhat. com/show_ bug.cgi? id=1310075