diff options
author | Dexuan Cui <dexuan.cui@intel.com> | 2011-09-19 16:00:38 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-09-21 13:42:49 +0100 |
commit | 23773a899be5dcb0e08762b408791c01c48d22cf (patch) | |
tree | e4cda2f85a28d705a049abd73d46b6412aedc9c3 /meta/classes/package_deb.bbclass | |
parent | f45ef8d9fa0277a919b69e95442fd44db741db0a (diff) | |
download | poky-23773a899be5dcb0e08762b408791c01c48d22cf.tar.gz |
deb packages support: switch from /var/dpkg to /var/lib/dpkg
[YOCTO #1086]
The pach was backported from OE:
http://git.openembedded.net/cgit.cgi/openembedded/commit/?id=41e0fbf792037f249d1b8d283b3de81718887c9f
(From OE-Core rev: d1e6f49a6473df3c626100ba01b27485f735c33b)
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package_deb.bbclass')
-rw-r--r-- | meta/classes/package_deb.bbclass | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass index 5a32047322..6733e64534 100644 --- a/meta/classes/package_deb.bbclass +++ b/meta/classes/package_deb.bbclass | |||
@@ -135,11 +135,11 @@ package_install_internal_deb () { | |||
135 | 135 | ||
136 | export APT_CONFIG="${STAGING_ETCDIR_NATIVE}/apt/apt-${task}.conf" | 136 | export APT_CONFIG="${STAGING_ETCDIR_NATIVE}/apt/apt-${task}.conf" |
137 | 137 | ||
138 | mkdir -p ${target_rootfs}/var/dpkg/info | 138 | mkdir -p ${target_rootfs}/var/lib/dpkg/info |
139 | mkdir -p ${target_rootfs}/var/dpkg/updates | 139 | mkdir -p ${target_rootfs}/var/lib/dpkg/updates |
140 | 140 | ||
141 | > ${target_rootfs}/var/dpkg/status | 141 | > ${target_rootfs}/var/lib/dpkg/status |
142 | > ${target_rootfs}/var/dpkg/available | 142 | > ${target_rootfs}/var/lib/dpkg/available |
143 | 143 | ||
144 | apt-get update | 144 | apt-get update |
145 | 145 | ||
@@ -179,7 +179,7 @@ package_install_internal_deb () { | |||
179 | done | 179 | done |
180 | 180 | ||
181 | # Mark all packages installed | 181 | # Mark all packages installed |
182 | sed -i -e "s/Status: install ok unpacked/Status: install ok installed/;" ${target_rootfs}/var/dpkg/status | 182 | sed -i -e "s/Status: install ok unpacked/Status: install ok installed/;" ${target_rootfs}/var/lib/dpkg/status |
183 | } | 183 | } |
184 | 184 | ||
185 | deb_log_check() { | 185 | deb_log_check() { |