mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
f45ef8d9fa
commit
23773a899b
@@ -135,11 +135,11 @@ package_install_internal_deb () {
|
||||
|
||||
export APT_CONFIG="${STAGING_ETCDIR_NATIVE}/apt/apt-${task}.conf"
|
||||
|
||||
mkdir -p ${target_rootfs}/var/dpkg/info
|
||||
mkdir -p ${target_rootfs}/var/dpkg/updates
|
||||
mkdir -p ${target_rootfs}/var/lib/dpkg/info
|
||||
mkdir -p ${target_rootfs}/var/lib/dpkg/updates
|
||||
|
||||
> ${target_rootfs}/var/dpkg/status
|
||||
> ${target_rootfs}/var/dpkg/available
|
||||
> ${target_rootfs}/var/lib/dpkg/status
|
||||
> ${target_rootfs}/var/lib/dpkg/available
|
||||
|
||||
apt-get update
|
||||
|
||||
@@ -179,7 +179,7 @@ package_install_internal_deb () {
|
||||
done
|
||||
|
||||
# Mark all packages installed
|
||||
sed -i -e "s/Status: install ok unpacked/Status: install ok installed/;" ${target_rootfs}/var/dpkg/status
|
||||
sed -i -e "s/Status: install ok unpacked/Status: install ok installed/;" ${target_rootfs}/var/lib/dpkg/status
|
||||
}
|
||||
|
||||
deb_log_check() {
|
||||
|
||||
Reference in New Issue
Block a user