#26452 closed defect (invalid)
port can't fetch from master_sites URL containing space in path
Reported by: | elelay (Eric Le Lay) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | 1.9.1 |
Keywords: | fetch space | Cc: | |
Port: | gtk-osx-application |
Description
I would like to fetch ige-mac-integration-0.9.6.tar.bz2 in the "GTK-OSX Build" directory of the sf.net project called gtk-osx.
Here is the log :
---> Attempting to fetch ige-mac-integration-0.9.6.tar.bz2 from http://lil.fr.distfiles.macports.org/gtk-osx-application % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 DEBUG: Fetching failed:: The requested URL returned error: 404 ---> Attempting to fetch ige-mac-integration-0.9.6.tar.bz2 from http://sourceforge.net/projects/gtk-osx/files/GTK-OSX % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 71562 100 71562 0 0 45729 0 0:00:01 0:00:01 --:--:-- 103k
what is in Portfile is :
master_sites http://sourceforge.net/projects/gtk-osx/files/GTK-OSX Build/ distname ige-mac-integration-${version} use_bzip2 yes
A direct fetch from sourceforge didn't work, but the download script on the macports mirror seemed to succeed (you can try to port fetch gtk-osx-application and it will fetch from distfiles.mp.org).
I open a bug this time so someone explains how to express the download url or confirms it's a bug in MP.
To try out for yourself, upgrade the version in devel/gtk-osx-application/Portfile to 0.8.6
Change History (3)
comment:1 follow-up: 2 Changed 14 years ago by jmroot (Joshua Root)
comment:2 Changed 14 years ago by elelay (Eric Le Lay)
Resolution: | → invalid |
---|---|
Status: | new → closed |
Replying to jmr@…:
Encode the space as %20.
you're right ! I thought I had tried it (several times) but it works. So I'm closing the bug report, Thanks !
comment:3 Changed 14 years ago by jmroot (Joshua Root)
Summary: | port can't fetch distfile containing space in path → port can't fetch from master_sites URL containing space in path |
---|
It would be nice if we could do that automatically, but one of Tcl's drawbacks is that it stores lists (such as master_sites) as strings with elements separated by spaces, so handling lists of strings that may contain spaces gets messy really quickly.
Encode the space as %20.