diff options
author | Liping Ke <liping.ke@intel.com> | 2011-03-10 17:27:55 +0800 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2011-03-10 21:43:04 -0800 |
commit | e415fd6d5be5ce7f05ff4ce68e751958360e7771 (patch) | |
tree | 5452bc188198c0aeab7617eb5bc562456536f704 /meta | |
parent | d6c639e64b0b6073665faef8fe1c5fe626bc3dde (diff) | |
download | poky-e415fd6d5be5ce7f05ff4ce68e751958360e7771.tar.gz |
Disable wget server side cache
We found some proxy server has wrong cache for long http file name.
It will cause fetching wrong ipk files from adt repo. To avoid this,
we use wget options --no-cache to disable all server side cache.
It will make the fetch speed slower, yet correct always.
(From OE-Core rev: 2e9e8af197671ae06de1bdc9201765b160869d60)
Signed-off-by: Liping Ke <liping.ke@intel.com>
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/installer/adt-installer_1.0.bb | 3 | ||||
-rw-r--r-- | meta/recipes-devtools/installer/files/wget_cache.patch | 10 |
2 files changed, 12 insertions, 1 deletions
diff --git a/meta/recipes-devtools/installer/adt-installer_1.0.bb b/meta/recipes-devtools/installer/adt-installer_1.0.bb index 50290f9ffd..ff7afe6623 100644 --- a/meta/recipes-devtools/installer/adt-installer_1.0.bb +++ b/meta/recipes-devtools/installer/adt-installer_1.0.bb | |||
@@ -36,11 +36,13 @@ PR = "r0" | |||
36 | ADT_DEPLOY = "${TMPDIR}/deploy/sdk/" | 36 | ADT_DEPLOY = "${TMPDIR}/deploy/sdk/" |
37 | ADT_DIR = "${WORKDIR}/adt-installer/" | 37 | ADT_DIR = "${WORKDIR}/adt-installer/" |
38 | YOCTOADT_VERSION = "${SDK_VERSION}" | 38 | YOCTOADT_VERSION = "${SDK_VERSION}" |
39 | S = "${WORKDIR}/trunk" | ||
39 | 40 | ||
40 | inherit deploy | 41 | inherit deploy |
41 | 42 | ||
42 | PV = "0.1.8+svnr${SRCPV}" | 43 | PV = "0.1.8+svnr${SRCPV}" |
43 | SRC_URI = "svn://opkg.googlecode.com/svn;module=trunk;proto=http \ | 44 | SRC_URI = "svn://opkg.googlecode.com/svn;module=trunk;proto=http \ |
45 | file://wget_cache.patch \ | ||
44 | file://adt_installer \ | 46 | file://adt_installer \ |
45 | file://scripts/adt_installer_internal \ | 47 | file://scripts/adt_installer_internal \ |
46 | file://scripts/util \ | 48 | file://scripts/util \ |
@@ -70,7 +72,6 @@ fakeroot do_deploy () { | |||
70 | cp ${WORKDIR}/adt_installer.tar.bz2 ${ADT_DEPLOY} | 72 | cp ${WORKDIR}/adt_installer.tar.bz2 ${ADT_DEPLOY} |
71 | } | 73 | } |
72 | 74 | ||
73 | do_patch[noexec] = "1" | ||
74 | do_install[noexec] = "1" | 75 | do_install[noexec] = "1" |
75 | do_configure[noexec] = "1" | 76 | do_configure[noexec] = "1" |
76 | do_compile[noexec] = "1" | 77 | do_compile[noexec] = "1" |
diff --git a/meta/recipes-devtools/installer/files/wget_cache.patch b/meta/recipes-devtools/installer/files/wget_cache.patch new file mode 100644 index 0000000000..6fd38e5fc4 --- /dev/null +++ b/meta/recipes-devtools/installer/files/wget_cache.patch | |||
@@ -0,0 +1,10 @@ | |||
1 | --- trunk/libopkg/opkg_download.c 2011-03-10 16:41:29.000000000 +0800 | ||
2 | +++ trunk/libopkg/opkg_download.c 2011-03-10 16:42:33.000000000 +0800 | ||
3 | @@ -162,6 +162,7 @@ | ||
4 | |||
5 | argv[i++] = "wget"; | ||
6 | argv[i++] = "-q"; | ||
7 | + argv[i++] = "--no-cache"; | ||
8 | if (conf->http_proxy || conf->ftp_proxy) { | ||
9 | argv[i++] = "-Y"; | ||
10 | argv[i++] = "on"; | ||