stage_itscreen error fix for dpkg -i

This commit is contained in:
Andrei Smaliak 2026-06-06 07:03:25 +04:00
parent cfca0163d8
commit 2005272a23
1 changed files with 9 additions and 2 deletions

View File

@ -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
}