[opensuse-buildservice] obs-service-download_files and Sourceforge
I used this kind of source tags with SourceForge: Source0: http://downloads.sourceforge.net/project/nsnam/ns-2/%{version}/ns-%{version}.tar.gz And the # Some web sites need a special user agent if echo $url | egrep -q '^http://[^/]*sourceforge.net/'; then # default wget user agent required, but /download suffix must be added urlextension="/download" else part of the download_files service is breaking it for me. What's the logic behind appending "/download"? -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Am Sonntag, 28. August 2011, 13:15:22 schrieb Cristian Morales Vega:
I used this kind of source tags with SourceForge:
Source0: http://downloads.sourceforge.net/project/nsnam/ns-2/%{version}/ns-%{version} .tar.gz
And the
# Some web sites need a special user agent if echo $url | egrep -q '^http://[^/]*sourceforge.net/'; then # default wget user agent required, but /download suffix must be added urlextension="/download" else
part of the download_files service is breaking it for me. What's the logic behind appending "/download"?
That is interessting, it stopped to work without it for me since some time and for example wget http://sourceforge.net/projects/nsnam/files/allinone/ns- allinone-2.34/ns-allinone-2.34.tar.gz/download works here. What is different at you side ? -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 29 August 2011 07:51, Adrian Schröter <adrian@suse.de> wrote:
Am Sonntag, 28. August 2011, 13:15:22 schrieb Cristian Morales Vega:
I used this kind of source tags with SourceForge:
Source0: http://downloads.sourceforge.net/project/nsnam/ns-2/%{version}/ns-%{version} .tar.gz
And the
# Some web sites need a special user agent if echo $url | egrep -q '^http://[^/]*sourceforge.net/'; then # default wget user agent required, but /download suffix must be added urlextension="/download" else
part of the download_files service is breaking it for me. What's the logic behind appending "/download"?
That is interessting, it stopped to work without it for me since some time and for example
wget http://sourceforge.net/projects/nsnam/files/allinone/ns- allinone-2.34/ns-allinone-2.34.tar.gz/download
works here. What is different at you side ?
I see. If I'm in http://sourceforge.net/projects/nsnam/files/ns-2/2.34/ I can get this link: http://sourceforge.net/projects/nsnam/files/ns-2/2.34/ns-2.34.tar.gz/downloa... And if I use it directly with wget it works. If I remove the "/download" and try again what I get is a redirect to the same URL with the "/download" appended. The thing is I never tried with those links, I always clicked on them. And from http://sourceforge.net/projects/nsnam/files/ns-2/2.34/ns-2.34.tar.gz/downloa... in your browser you get a web page with a "direct link" link to something as http://downloads.sourceforge.net/project/nsnam/ns-2/2.34/ns-2.34.tar.gz?r=ht... What I always used is that, removing everything after the '?', so: http://downloads.sourceforge.net/project/nsnam/ns-2/2.34/ns-2.34.tar.gz And this doesn't works if you append the "/download". In summary: - Works http://sourceforge.net/projects/nsnam/files/ns-2/2.34/ns-2.34.tar.gz/downloa... http://downloads.sourceforge.net/project/nsnam/ns-2/2.34/ns-2.34.tar.gz - Works through a redirect http://sourceforge.net/projects/nsnam/files/ns-2/2.34/ns-2.34.tar.gz - Doesn't work http://downloads.sourceforge.net/project/nsnam/ns-2/2.34/ns-2.34.tar.gz/down... -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Am Montag, 29. August 2011, 09:47:02 schrieb Cristian Morales Vega: ...
In summary:
- Works http://sourceforge.net/projects/nsnam/files/ns-2/2.34/ns-2.34.tar.gz/downloa d http://downloads.sourceforge.net/project/nsnam/ns-2/2.34/ns-2.34.tar.gz
- Works through a redirect http://sourceforge.net/projects/nsnam/files/ns-2/2.34/ns-2.34.tar.gz
- Doesn't work http://downloads.sourceforge.net/project/nsnam/ns-2/2.34/ns-2.34.tar.gz/down load
Okay, I have limited this handling now to http://sourceforge.net/ only thanks for finding out adrian -- Adrian Schroeter SUSE Linux Products GmbH email: adrian@suse.de -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (2)
-
Adrian Schröter
-
Cristian Morales Vega