diff options
author | Liping Ke <liping.ke@intel.com> | 2011-03-10 17:27:55 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-03-10 18:14:27 -0800 |
commit | f776bc667eb99bf554f433d75a381ebbb1ddb618 (patch) | |
tree | e97a6073f0f1ee02e9aa4da5438862509e934c15 /meta | |
parent | 30dbfde8ebcb761120eb1ab1d213e850cac966fd (diff) | |
download | ast2050-yocto-poky-f776bc667eb99bf554f433d75a381ebbb1ddb618.zip ast2050-yocto-poky-f776bc667eb99bf554f433d75a381ebbb1ddb618.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 50290f9..ff7afe6 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" ADT_DEPLOY = "${TMPDIR}/deploy/sdk/" ADT_DIR = "${WORKDIR}/adt-installer/" YOCTOADT_VERSION = "${SDK_VERSION}" +S = "${WORKDIR}/trunk" inherit deploy PV = "0.1.8+svnr${SRCPV}" SRC_URI = "svn://opkg.googlecode.com/svn;module=trunk;proto=http \ + file://wget_cache.patch \ file://adt_installer \ file://scripts/adt_installer_internal \ file://scripts/util \ @@ -70,7 +72,6 @@ fakeroot do_deploy () { cp ${WORKDIR}/adt_installer.tar.bz2 ${ADT_DEPLOY} } -do_patch[noexec] = "1" do_install[noexec] = "1" do_configure[noexec] = "1" 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 0000000..6fd38e5 --- /dev/null +++ b/meta/recipes-devtools/installer/files/wget_cache.patch @@ -0,0 +1,10 @@ +--- trunk/libopkg/opkg_download.c 2011-03-10 16:41:29.000000000 +0800 ++++ trunk/libopkg/opkg_download.c 2011-03-10 16:42:33.000000000 +0800 +@@ -162,6 +162,7 @@ + + argv[i++] = "wget"; + argv[i++] = "-q"; ++ argv[i++] = "--no-cache"; + if (conf->http_proxy || conf->ftp_proxy) { + argv[i++] = "-Y"; + argv[i++] = "on"; |