Currently the urls to fedorahosted release tarballs contain the first two characters of the project name in the URL, e.g.:
https://fedorahosted.org/releases/s/y/system-config-services-docs/
This leeds to people using ugly Source0 lines, e.g.: Source0: http://fedorahosted.org/releases/$(echo %{name} | %{__sed} 's@((.)(.).*)@\2/\3/\1@')/%{name}-%{version}.tar.bz2
I guess that it should be possible with only a little performance impact to add a rewrite rule that automatically appends the two characters to the path for release tarballs, to make e.g. this URL work: https://fedorahosted.org/releases/system-config-services-docs/
I guess something like this will work:
RewriteRule ^/releases/([A-Za-z])([A-Za-z])(.*) /path/to/releases/$1/$2/$1$2$3
Hi, Since i have rewritten a few rewrite rules on hosted, i will take this ticket.
I did this tonight, though instead of redoing /releases since lots of existing things depend on that behavior, I did it as /released.
IOW, https://fedorahosted.org/released/supybot-fedora will take you to supybot-fedora tarballs, as well as /releases/s/u/supybot-fedora
Log in to comment on this ticket.