summaryrefslogtreecommitdiff
path: root/meta/recipes-devtools/python/python-pycurl
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-09 14:58:14 +0000
commit1d3f37dc9a43ba6d6beb7b4530c077f239032b99 (patch)
treec4ac96c819f627dd5d2e9215dd7f6e3fe2be33c1 /meta/recipes-devtools/python/python-pycurl
parent25fae81538a92e15eab3fc169ebce44505f67839 (diff)
downloadopenembedded-core-1d3f37dc9a43ba6d6beb7b4530c077f239032b99.tar.gz
openembedded-core-1d3f37dc9a43ba6d6beb7b4530c077f239032b99.tar.bz2
openembedded-core-1d3f37dc9a43ba6d6beb7b4530c077f239032b99.tar.xz
openembedded-core-1d3f37dc9a43ba6d6beb7b4530c077f239032b99.zip
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] Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'meta/recipes-devtools/python/python-pycurl')
0 files changed, 0 insertions, 0 deletions