From 2005272a23926720083d6fab1829b1add6353a86 Mon Sep 17 00:00:00 2001 From: Andrei Smaliak Date: Sat, 6 Jun 2026 07:03:25 +0400 Subject: [PATCH] stage_itscreen error fix for dpkg -i --- stage_itscreen/stage_itscreen_install.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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 }