[MacPorts] #26452: port can't fetch distfile containing space in path
#26452: port can't fetch distfile containing space in path ---------------------------------+------------------------------------------ Reporter: elelay@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 1.9.1 Keywords: fetch space | Port: gtk-osx-application ---------------------------------+------------------------------------------ I would like to fetch [https://sourceforge.net/projects/gtk-osx/files/GTK- OSX%20Build/ 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 -- Ticket URL: <http://trac.macports.org/ticket/26452> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26452: port can't fetch distfile containing space in path ---------------------------------+------------------------------------------ Reporter: elelay@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: base | Version: 1.9.1 Keywords: fetch space | Port: gtk-osx-application ---------------------------------+------------------------------------------ Comment(by jmr@…): Encode the space as %20. -- Ticket URL: <http://trac.macports.org/ticket/26452#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26452: port can't fetch distfile containing space in path ----------------------------------+----------------------------------------- Reporter: elelay@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: base | Version: 1.9.1 Resolution: invalid | Keywords: fetch space Port: gtk-osx-application | ----------------------------------+----------------------------------------- Changes (by elelay@…): * status: new => closed * resolution: => invalid Comment: Replying to [comment:1 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 ! -- Ticket URL: <http://trac.macports.org/ticket/26452#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#26452: port can't fetch from master_sites URL containing space in path ----------------------------------+----------------------------------------- Reporter: elelay@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: base | Version: 1.9.1 Resolution: invalid | Keywords: fetch space Port: gtk-osx-application | ----------------------------------+----------------------------------------- Comment(by jmr@…): 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. -- Ticket URL: <http://trac.macports.org/ticket/26452#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts