Skip to contentSkip to conversation

own-mirrors.bbclass: allow mirroring of scm fetched packages

PATCH In review Eric Bénard 4 participants 4 messages Nov 3, 2010 – Nov 4, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 own-mirrors.bbclass: allow mirroring of scm fetched packages

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.

---
 classes/own-mirrors.bbclass |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
classes/own-mirrors.bbclass +6 -1
index e8a0f48..720ce42 100644
@@ -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}
 }
Signature · 1 line
1.6.3.3
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Eric Bénard

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

Quoted 7 lines

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.

Quoted 19 lines
---
 classes/own-mirrors.bbclass |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
classes/own-mirrors.bbclass +6 -1
index e8a0f48..720ce42 100644
@@ -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}
 }
Signature · 2 lines
Tom Rini
Mentor Graphics Corporation
#2 lore raw
Quoted 13 lines · Tom Rini
Quoted 11 lines · Eric B??nard

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.

Quoted 1 line

Looks like a nice way to have local mirrored downloads. May I suggest to put the above examples of running busybox httpd as a comment inside the class.

Quoted 29 lines
Quoted 19 lines
---
 classes/own-mirrors.bbclass |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
classes/own-mirrors.bbclass +6 -1
index e8a0f48..720ce42 100644
@@ -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}
 }
Signature · 7 lines
Tom Rini
Mentor Graphics Corporation

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
#3 lore raw

2010/11/4 Denys Dmytriyenko <[email protected]>:

Quoted 14 lines · Tom Rini
Quoted 13 lines
Quoted 11 lines · Eric B??nard

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.

Quoted 6 lines
Quoted 1 line

Looks like a nice way to have local mirrored downloads. May I suggest to put the above examples of running busybox httpd as a comment inside the class.

Cool. Thanks alot!

Quoted 36 lines
Quoted 26 lines
Quoted 10 lines

---
 classes/own-mirrors.bbclass |    7 ++++++-

 1 files changed, 6 insertions(+), 1 deletions(-)
classes/own-mirrors.bbclass +0 -0
index e8a0f48..720ce42 100644

classes/own-mirrors.bbclass line 9

Quoted 10 lines
classes/own-mirrors.bbclass +6 -1
@@ -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}
  }

--
Tom Rini
Mentor Graphics Corporation

Quoted 4 lines

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel