Patchwork [1/2] mirrors.bbclass: add ${CPAN_MIRROR} option

login
register
mail settings
Submitter Tim Orling
Date May 21, 2014, 4:47 a.m.
Message ID <1400647649-27570-2-git-send-email-ticotimo@gmail.com>
Download mbox | patch
Permalink /patch/72457/
State Accepted
Commit 5b8dbfdd6076ff1304924ad400aafdee75d43c10
Headers show

Comments

Tim Orling - May 21, 2014, 4:47 a.m.
From: Tim Orling <TicoTimo@gmail.com>

* Perl modules fail to fetch because default CPAN site has been flaky lately.
* Create option to use metacpan.org as a mirror.

Signed-off-by: Tim Orling <TicoTimo@gmail.com>
---
 meta/classes/mirrors.bbclass | 2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/meta/classes/mirrors.bbclass b/meta/classes/mirrors.bbclass
index 90fb1e0..0d9b517 100644
--- a/meta/classes/mirrors.bbclass
+++ b/meta/classes/mirrors.bbclass
@@ -67,4 +67,6 @@  p4://.*/.*      http://sources.openembedded.org/ \n \
 osc://.*/.*     http://sources.openembedded.org/ \n \
 https?$://.*/.* http://sources.openembedded.org/ \n \
 ftp://.*/.*     http://sources.openembedded.org/ \n \
+${CPAN_MIRROR}  http://cpan.metacpan.org/ \n \
+${CPAN_MIRROR}  http://search.cpan.org/CPAN/ \n \
 "