#15544: sage-download-file could use the metalink or torrent file for upstream
spkgs
-----------------------------+----------------------------
Reporter: schilly | Owner:
Type: PLEASE CHANGE | Status: new
Priority: minor | Milestone: sage-6.1
Component: misc | Keywords:
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
-----------------------------+----------------------------
Since we have switched to Git and have this spkg/upsteam directory, it is
also indexed it like the other mirrored files. This means, there is a
metalink and and torrent file (webseeds only!) for each file. We could use
`aria2c` as a nice command-line utility to download the file from all the
mirrors with included verification.
E.g.
`/spkg/upstream/ipython/ipython-0.13.2.tar.bz2`
has corresponding files:
`/spkg/upstream/ipython/meta/ipython-0.13.2.tar.bz2.metalink|.torrent`
The logic should be like this:
if aria2c exists:
if corresponding metalink file exists:
aria2c ...
else:
continue with curl, wget, ...
The only complication is, that it doesn't download to stdout. That must be
wrapped somehow with a temporary file.
--
Ticket URL: <http://trac.sagemath.org/ticket/15544>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.