summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2011-11-09 11:12:08 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-10 11:37:10 +0000
commit7b645cac3f7e89c20918e83d61352ccc5f8b63be (patch)
tree3bb41fae3c817f2c3f794c611d231dafdfb16581 /meta/recipes-support
parent23d2eaf9d283cae47e52d1151f0d4ad53bbbe8a0 (diff)
downloadpoky-7b645cac3f7e89c20918e83d61352ccc5f8b63be.tar.gz
classes/package_rpm: disable uninstall scripts for upgrades
Our current assumption (based on the behaviour of opkg) when writing recipes is that prerm and postrm do not get called during an upgrade. When using rpm however, these are mapped to the rpm "preun" and "postun" events which occur after postinst for upgrades, and when these contain removal type operations (such as update-alternatives --remove) this causes problems. This patch wraps each preun and postun script for rpm in a check that determines whether or not the script is being called during an upgrade, and skips the entire script if it is, which mimics the behaviour of opkg under the same conditions. Fixes [YOCTO #1760] (From OE-Core rev: 1d3f37dc9a43ba6d6beb7b4530c077f239032b99) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
0 files changed, 0 insertions, 0 deletions