Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sage-download-file could use the metalink or torrent file for upstream spkgs #15544

Open
haraldschilly opened this issue Dec 18, 2013 · 0 comments

Comments

@haraldschilly
Copy link
Member

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.

Component: misc

Issue created by migration from https://trac.sagemath.org/ticket/15544

@haraldschilly haraldschilly added this to the sage-6.1 milestone Dec 18, 2013
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.1, sage-6.2 Jan 30, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.2, sage-6.3 May 6, 2014
@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@mkoeppe mkoeppe removed this from the sage-6.4 milestone Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants