diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-26 11:41:31 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-27 09:42:06 +0000 |
commit | 68f3a571f422170ef0fcef0243cdb6fadc11fade (patch) | |
tree | b21d9a5f1f9cd632f74567389bb34e3c62347e85 | |
parent | b503d35e7e56dc66447eb2bc83e3277862d328b9 (diff) | |
download | ast2050-yocto-poky-68f3a571f422170ef0fcef0243cdb6fadc11fade.zip ast2050-yocto-poky-68f3a571f422170ef0fcef0243cdb6fadc11fade.tar.gz |
apt/package_mamager: Ensure WORKDIR is used for lists directory
The native sysroot should not be used as a store for the lists files since
multiple images running at once would conflict over this. Instead redirect
this to WORKDIR. This means some extra directories need to be created.
Also create apt.conf.d to silence some warnings.
(From OE-Core rev: dc4abfc8f99c08e0c1ac9d098ce17838d0eda028)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/lib/oe/package_manager.py | 2 | ||||
-rw-r--r-- | meta/recipes-devtools/apt/files/apt.conf | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index 824af00..764ab72 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py @@ -1624,6 +1624,8 @@ class DpkgPM(PackageManager): bb.utils.remove(self.apt_conf_dir, True) bb.utils.mkdirhier(self.apt_conf_dir) + bb.utils.mkdirhier(self.apt_conf_dir + "/lists/partial/") + bb.utils.mkdirhier(self.apt_conf_dir + "/apt.conf.d/") arch_list = [] for arch in archs.split(): diff --git a/meta/recipes-devtools/apt/files/apt.conf b/meta/recipes-devtools/apt/files/apt.conf index 5058650..0335135 100644 --- a/meta/recipes-devtools/apt/files/apt.conf +++ b/meta/recipes-devtools/apt/files/apt.conf @@ -2,7 +2,7 @@ Dir "${STAGING_DIR_NATIVE}/" { State "var/lib/apt/" { - Lists "lists/"; + Lists "#APTCONF#/lists/"; status "#ROOTFS#/var/lib/dpkg/status"; }; Cache "var/cache/apt/" |