From 0ef914b250df46a41348479446214575668943fb Mon Sep 17 00:00:00 2001 From: Eric BENARD Date: Wed, 3 Nov 2010 13:28:54 +0000 Subject: [PATCH] own-mirrors.bbclass: allow mirroring of scm fetched packages MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit this way, it's possible to setup a local webserver (for example using busybox httpd -p "8081" -h backuped_download_dir) serving a presiously fetched download directory and to build wihout the need for an internet access this can also be used when connected to know to know which packages are missing from the local mirror's directory (and thus are fetched from internet as a fallback), it's possible to run the server this way : busybox httpd -p "8081" -h backuped_download_dir -vv -f | grep -B 1 response:404 to get the name of the missing packages. Signed-off-by: Eric Bénard Acked-by: Denys Dmytriyenko Acked-by: Frans Meulenbroeks Signed-off-by: Tom Rini --- classes/own-mirrors.bbclass | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/classes/own-mirrors.bbclass b/classes/own-mirrors.bbclass index e8a0f481d7..720ce42e78 100644 --- a/classes/own-mirrors.bbclass +++ b/classes/own-mirrors.bbclass @@ -1,4 +1,9 @@ PREMIRRORS() { -https?://.*/.* ${SOURCE_MIRROR_URL} +cvs://.*/.* ${SOURCE_MIRROR_URL} +svn://.*/.* ${SOURCE_MIRROR_URL} +git://.*/.* ${SOURCE_MIRROR_URL} +hg://.*/.* ${SOURCE_MIRROR_URL} +bzr://.*/.* ${SOURCE_MIRROR_URL} +https?$://.*/.* ${SOURCE_MIRROR_URL} ftp://.*/.* ${SOURCE_MIRROR_URL} } -- 2.39.5