Skip to contentSkip to conversation

shr: add shr-mirrors.bbclass and make use of it

PATCH New Krzysztof Koroscik 1 participant 1 message Aug 21, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 shr: add shr-mirrors.bbclass and make use of it

---
 classes/shr-mirrors.bbclass |   13 +++++++++++++
 conf/distro/shr.conf        |    5 ++++-
 2 files changed, 17 insertions(+), 1 deletions(-)
 create mode 100644 classes/shr-mirrors.bbclass
classes/shr-mirrors.bbclass new file +13 -0
new file mode 100644
index 0000000..92a41ad
@@ -0,0 +1,13 @@
+PREMIRRORS_append () {
+cvs://.*/.* http://build.shr-project.org/sources/
+svn://.*/.* http://build.shr-project.org/sources/
+git://.*/.* http://build.shr-project.org/sources/
+hg://.*/.* http://build.shr-project.org/sources/
+bzr://.*/.* http://build.shr-project.org/sources/
+}
+
+MIRRORS_append () {
+ftp://.*/.*	http://build.shr-project.org/sources/
+https?$://.*/.*	http://build.shr-project.org/sources/
+}
+
conf/distro/shr.conf +4 -1
index e2a8d23..f7f4cf4 100644
@@ -82,7 +82,10 @@ ANGSTROM_BLACKLIST_pn-linux-davinci = "strange kernel, spank maintainer"
 
 CVS_TARBALL_STASH += "http://build.shr-project.org/sources/"
 
-PREMIRRORS = "(ftp|https?)$://.*/.* http://build.shr-project.org/sources/"
+#The shr-mirrors.bbclass repleaces this
+#PREMIRRORS = "(ftp|https?)$://.*/.* http://build.shr-project.org/sources/"
+INHERIT += "shr-mirrors" 
+
 
 DISTRO_FEED_PREFIX ?= "shr-dev"
 DISTRO_FEED_URI ?= "http://build.shr-project.org/shr-testing/ipk"
Signature · 1 line
1.6.4