Joachim, For sourceforge URLs, you can safely omit the question mark and everything after it, since that's part of the browser download load balancing process. When downloading with wget, curl, or python's urllib, downloads.sourceforge.net does its own behind-the-scenes load balancing. As for hyphens, I don't believe they need to be escaped, since they're not XML entities like the ampersand is. The following download_by_url action should work: <action type="download_by_url">http://downloads.sourceforge.net/project/transpose/transpose/transpose-2.0/2.0/transpose-2.0.zip</action> --Dave B. On 09/30/2013 08:45 AM, Joachim Jacob | VIB | wrote:
Hi all,
Not fixed yet. Somehow the download does not work: I have escaped the ampersands and the hyphens. The download seems to have to proceed, since I receive no error from the download step. The next step in the dependencies file gives an error: mv: cannot stat transpose.zip': No such file or directory
Cheers, J
Joachim Jacob Contact details: http://www.bits.vib.be/index.php/about/80-team
On 09/30/2013 02:06 PM, Peter Cock wrote:
You must escape any ampersand in the XML as & and then it should work.
Peter
On Mon, Sep 30, 2013 at 12:51 PM, Joachim Jacob | VIB | <joachim.jacob@vib.be> wrote:
Hi all,
The download URL seems not to be accepted in tool_dependencies.xml. It is an URL from sourceforge, the direct link to a package.
The error upon uploading the tool to my toolshed: ************** Metadata may have been defined for some items in revision '5665a799775d'. Correct the following problems if necessary and reset metadata. tool_dependencies.xml - Exception attempting to parse /mnt/toolsheddb/database/000/repo_26/tool_dependencies.xml: not well-formed (invalid token): line 6, column 149 **************
The tool_dependencies.xml file: ************** 1 <?xml version="1.0"?> 2 <tool_dependency> 3 <package name="transpose" version="2.0.0"> 4 <install version="1.0"> 5 <actions> 6 <action type="download_by_url">http://downloads.sourceforge.net/project/transpose/transpose/transpose-2.0/2.0/transpose-2.0.zip?r=&ts=1380535239&use_mirror=surfnet</action>
7 <action type="shell_command">mkdir bin</action> 8 <action type="shell_command">unzip transpose-2.0.zip</action> <action type="shell_command">cd transpose-2.0/src</action> <action type="shell_command">gcc transpose.c -o transpose</action> <action type="move_file"> <source>$INSTALL_DIR/transpose-2.0/src/transpose</source> <destination>$INSTALL_DIR/bin</destination> </action> <action type="shell_command">chmod +x $INSTALL_DIR/bin/transpose</action> <action type="set_environment"> <environment_variable name="PATH" action="prepend_to">$INSTALL_DIR/bin</environment_variable> </action> </actions> </install> <readme> Compiling transpose and putting in the path. </readme> </package> </tool_dependency> **************
Cheers, Joachim
-- Joachim Jacob Contact details: http://www.bits.vib.be/index.php/about/80-team
___________________________________________________________ Please keep all replies on the list by using "reply all" in your mail client. To manage your subscriptions to this and other Galaxy lists, please use the interface at: http://lists.bx.psu.edu/
To search Galaxy mailing lists use the unified search at: http://galaxyproject.org/search/mailinglists/
___________________________________________________________ Please keep all replies on the list by using "reply all" in your mail client. To manage your subscriptions to this and other Galaxy lists, please use the interface at: http://lists.bx.psu.edu/
To search Galaxy mailing lists use the unified search at: http://galaxyproject.org/search/mailinglists/