unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] download: Add official SourceForge mirror.
@ 2016-07-22 18:08 Alex Griffin
  2016-07-22 23:10 ` Leo Famulari
  2016-07-24 16:36 ` Leo Famulari
  0 siblings, 2 replies; 4+ messages in thread
From: Alex Griffin @ 2016-07-22 18:08 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 459 bytes --]

This patch mirrors a similar change in nixpkgs [1][2].

The official method for downloading from SourceForge is to use
downloads.sourceforge.net, which redirects to various other mirrors. It
can be unreliable, but also faster because it can find a nearby mirror
and load-balance. If it fails Guix will still fall back to known good
mirrors.

[1]: https://github.com/NixOS/nixpkgs/issues/16900
[2]: https://github.com/NixOS/nixpkgs/pull/16976
-- 
Alex Griffin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-download-Add-official-SourceForge-mirror.patch --]
[-- Type: text/x-patch; name="0001-download-Add-official-SourceForge-mirror.patch", Size: 1187 bytes --]

From 387f1116e6d6c8aa99e19a0ade3605300d59b0f9 Mon Sep 17 00:00:00 2001
From: Alex Griffin <a@ajgrf.com>
Date: Fri, 22 Jul 2016 12:55:47 -0500
Subject: [PATCH] download: Add official SourceForge mirror.

The official method for downloading from SourceForge is to use
downloads.sourceforge.net, which redirects to various other mirrors. It
can be unreliable, but also faster because it can find a nearby mirror
and load-balance. If it fails Guix will still fall back to known good
mirrors.

* guix/download.scm (mirrors)[sourceforge]: Add official SourceForge mirror.
---
 guix/download.scm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/guix/download.scm b/guix/download.scm
index 8f38a4f..aa403af 100644
--- a/guix/download.scm
+++ b/guix/download.scm
@@ -99,6 +99,7 @@
        "http://www.centervenus.com/mirrors/nongnu/"
        "http://download.savannah.gnu.org/releases-noredirect/")
       (sourceforge ; https://sourceforge.net/p/forge/documentation/Mirrors/
+       "http://downloads.sourceforge.net/project/"
        "http://ufpr.dl.sourceforge.net/project/"
        "http://heanet.dl.sourceforge.net/project/"
        "http://freefr.dl.sourceforge.net/project/"
-- 
2.9.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] download: Add official SourceForge mirror.
  2016-07-22 18:08 [PATCH] download: Add official SourceForge mirror Alex Griffin
@ 2016-07-22 23:10 ` Leo Famulari
  2016-07-24  7:29   ` Efraim Flashner
  2016-07-24 16:36 ` Leo Famulari
  1 sibling, 1 reply; 4+ messages in thread
From: Leo Famulari @ 2016-07-22 23:10 UTC (permalink / raw)
  To: Alex Griffin; +Cc: guix-devel

On Fri, Jul 22, 2016 at 01:08:31PM -0500, Alex Griffin wrote:
> This patch mirrors a similar change in nixpkgs [1][2].
> 
> The official method for downloading from SourceForge is to use
> downloads.sourceforge.net, which redirects to various other mirrors. It
> can be unreliable, but also faster because it can find a nearby mirror
> and load-balance. If it fails Guix will still fall back to known good
> mirrors.

I think it's a good idea. It wouldn't have helped with the latest
problem, where the project-specific parts of the URL changed. But, if
our users can automatically use closer mirrors, that seems best.

Any objections?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] download: Add official SourceForge mirror.
  2016-07-22 23:10 ` Leo Famulari
@ 2016-07-24  7:29   ` Efraim Flashner
  0 siblings, 0 replies; 4+ messages in thread
From: Efraim Flashner @ 2016-07-24  7:29 UTC (permalink / raw)
  To: Leo Famulari; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 990 bytes --]

On Fri, Jul 22, 2016 at 07:10:26PM -0400, Leo Famulari wrote:
> On Fri, Jul 22, 2016 at 01:08:31PM -0500, Alex Griffin wrote:
> > This patch mirrors a similar change in nixpkgs [1][2].
> > 
> > The official method for downloading from SourceForge is to use
> > downloads.sourceforge.net, which redirects to various other mirrors. It
> > can be unreliable, but also faster because it can find a nearby mirror
> > and load-balance. If it fails Guix will still fall back to known good
> > mirrors.
> 
> I think it's a good idea. It wouldn't have helped with the latest
> problem, where the project-specific parts of the URL changed. But, if
> our users can automatically use closer mirrors, that seems best.
> 
> Any objections?
> 

This sounds like a good idea

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] download: Add official SourceForge mirror.
  2016-07-22 18:08 [PATCH] download: Add official SourceForge mirror Alex Griffin
  2016-07-22 23:10 ` Leo Famulari
@ 2016-07-24 16:36 ` Leo Famulari
  1 sibling, 0 replies; 4+ messages in thread
From: Leo Famulari @ 2016-07-24 16:36 UTC (permalink / raw)
  To: Alex Griffin; +Cc: guix-devel

On Fri, Jul 22, 2016 at 01:08:31PM -0500, Alex Griffin wrote:
> * guix/download.scm (mirrors)[sourceforge]: Add official SourceForge mirror.

I added a copyright line for you and pushed as fe224d20cc. Thanks!

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-07-24 16:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-22 18:08 [PATCH] download: Add official SourceForge mirror Alex Griffin
2016-07-22 23:10 ` Leo Famulari
2016-07-24  7:29   ` Efraim Flashner
2016-07-24 16:36 ` Leo Famulari

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).