]> code.ossystems Code Review - openembedded-core.git/commit
opkg-utils: Do not use --ignore-fail-on-non-empty with rmdir
authorKhem Raj <raj.khem@gmail.com>
Wed, 21 Dec 2016 17:34:12 +0000 (09:34 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 9 Jan 2017 13:34:29 +0000 (13:34 +0000)
commit5ec8934a495e9b9a782889bc3a84936c8a381165
tree35d6904937e88392018878c46aa1227482087d98
parent40c2addf0f0ee16b1c1334cf00f1490ffeaac475
opkg-utils: Do not use --ignore-fail-on-non-empty with rmdir

--ignore-fail-on-non-empty is coreutils specific, and you
are not always going to have coreutils on target systems
especially small ones. They will use the busybox applet which
does not support --ignore-fail-on-non-empty, use pipe and true
to ignore the errorcode from rmdir instead

Fixes upgrade errors on target e.g.

rmdir: unrecognized option '--ignore-fail-on-non-empty'
BusyBox v1.24.1 (2016-12-20 10:41:39 PST) multi-call binary.

Usage: rmdir [OPTIONS] DIRECTORY...
To remove package debris, try `opkg remove update-alternatives-opkg`.
To re-attempt the install, try `opkg install update-alternatives-opkg`.
Collected errors:
 * pkg_run_script: package "update-alternatives-opkg" postrm script returned status 1.
 * postrm_upgrade_old_pkg: postrm script for package "update-alternatives-opkg" failed

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/opkg-utils/opkg-utils_git.bb