Re: URL-encoded hrefs
Ville Skyttä <[email protected]> Tue, 05 Mar 2013 21:39:04 +0200
| Newsgroups | gmane.linux.rpm.metadata |
|---|---|
| Message-ID | <[email protected]> |
On 2013-03-05 00:09, James Antill wrote: > On Mon, 2013-03-04 at 10:11 -0800, Ash Charles wrote: >> Is there a flag or setting for createrepo that allows it to generate >> urlencoded hrefs? If not, would the project be open to a patch that >> made this option available? > > What version are you using? > The current upstream createrepo uses yum which does call to_xml(blah, > attrib=True) in all code paths, that I can see. But that's XML encoding, while the OP is asking about URL encoding. Which IMO should Just Happen properly if it already doesn't (haven't checked) without any configuration options - if there's a + in a filename, it needs to be encoded as %2B in a URL.