summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2013-09-10 20:59:35 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-11 11:06:11 +0100
commit4b2d9acda80ee618241a924555178a750cbd6e82 (patch)
tree50fd2707f6f92a11413124e01385142ae2839aeb /meta/classes
parent19c3c6dff3aecbc649608c7cc9ba195f1fa6ed4c (diff)
downloadpoky-4b2d9acda80ee618241a924555178a750cbd6e82.tar.gz
python-smartpm: Add an attempt install mode
[ YOCTO #3723 ] Add a mode to smart that will allow an installation to continue, instead of failure in the case that one or more items is uninstallable. Uninstallable packages are simply ignored, and no error is generated. (From OE-Core rev: bdf07b1698d228dc7ff555199a269b1ff8ceca19) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/package_rpm.bbclass7
1 files changed, 2 insertions, 5 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 8ab42c441e..699d0f200a 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -472,11 +472,8 @@ EOF
472 echo "Attempting $pkgs_to_install" 472 echo "Attempting $pkgs_to_install"
473 echo "Note: see `dirname ${BB_LOGFILE}`/log.do_${task}_attemptonly.${PID}" 473 echo "Note: see `dirname ${BB_LOGFILE}`/log.do_${task}_attemptonly.${PID}"
474 translate_oe_to_smart ${sdk_mode} --attemptonly $package_attemptonly 474 translate_oe_to_smart ${sdk_mode} --attemptonly $package_attemptonly
475 for each_pkg in $pkgs_to_install ; do 475 echo "Attempting $pkgs_to_install" >> "`dirname ${BB_LOGFILE}`/log.do_${task}_attemptonly.${PID}"
476 # We need to try each package individually as a single dependency failure 476 smart --data-dir=${target_rootfs}/var/lib/smart install --attempt -y ${pkgs_to_install} >> "`dirname ${BB_LOGFILE}`/log.do_${task}_attemptonly.${PID}" 2>&1
477 # will break the whole set otherwise.
478 smart --data-dir=${target_rootfs}/var/lib/smart install -y $each_pkg >> "`dirname ${BB_LOGFILE}`/log.do_${task}_attemptonly.${PID}" 2>&1 || true
479 done
480 fi 477 fi
481} 478}
482 479