diff --git a/stage_itscreen/stage_itscreen_install.sh b/stage_itscreen/stage_itscreen_install.sh index 369b64b..4ca3483 100755 --- a/stage_itscreen/stage_itscreen_install.sh +++ b/stage_itscreen/stage_itscreen_install.sh @@ -479,8 +479,15 @@ install_qt_video_oes_plugin() { [[ -f "$deb" ]] || die "Missing OES plugin package: $deb" - run_long "Install Qt Video OES plugin" 300 dpkg -i "$deb" - soft_run "Fix dependencies after OES plugin install" 600 apt-get install -f -y + if ! run_long "Install Qt Video OES plugin" 600 apt-get install -y "$deb"; then + warn "apt failed to install Qt Video OES plugin directly; trying dpkg plus dependency repair" + dpkg -i "$deb" >>"$LOG" 2>&1 || true + run_long "Fix dependencies after OES plugin install" 600 apt-get install -f -y + fi + + if ! dpkg-query -W -f='${Status}\n' qt-video-oes-plugins 2>/dev/null | grep -qx 'install ok installed'; then + die "qt-video-oes-plugins is not installed after dependency repair. See ${LOG}" + fi ldconfig }