shr: add shr-mirrors.bbclass and make use of it
authorKrzysztof Koroscik <soltys@szluug.org>
Sat, 21 Aug 2010 00:26:49 +0000 (00:26 +0000)
committerMartin Jansa <Martin.Jansa@gmail.com>
Sat, 21 Aug 2010 10:53:44 +0000 (12:53 +0200)
Signed-off-by: Krzysztof Koroscik <soltys@szluug.org>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
classes/shr-mirrors.bbclass [new file with mode: 0644]
conf/distro/shr.conf

diff --git a/classes/shr-mirrors.bbclass b/classes/shr-mirrors.bbclass
new file mode 100644 (file)
index 0000000..92a41ad
--- /dev/null
@@ -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/
+}
+
index e2a8d23..f7f4cf4 100644 (file)
@@ -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"