From 1d9d37e5fa77ba786540dc051b208a0171906393 Mon Sep 17 00:00:00 2001 From: mavrothal Date: Sat, 6 Feb 2016 17:08:36 +0200 Subject: [PATCH] Report dependencies when clicking on progressbar --- .../usr/local/petget/pkg_chooser.sh | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/woof-code/rootfs-skeleton/usr/local/petget/pkg_chooser.sh b/woof-code/rootfs-skeleton/usr/local/petget/pkg_chooser.sh index 1d51036fe4c..62388d67fe2 100755 --- a/woof-code/rootfs-skeleton/usr/local/petget/pkg_chooser.sh +++ b/woof-code/rootfs-skeleton/usr/local/petget/pkg_chooser.sh @@ -401,6 +401,46 @@ if [ "$(cat /var/local/petget/ui_choice 2>/dev/null)" = "Classic" ]; then exit 0 fi +progressbar_info () { + if [ "$(cat /tmp/overall_dependencies | wc -l)" -ge 1 ];then + NEEDED_PGKS="$( + + '"`/usr/lib/gtkdialog/xml_info fixed package_add.svg 60 " " "$(gettext "Dependencies needed")"`"' + + + + + + '"`/usr/lib/gtkdialog/xml_pixmap dialog-info.svg 32`"' + + + + + + + + + + + + + + '"`/usr/lib/gtkdialog/xml_scalegrip`"' + + + ' + RETPARAMS="`gtkdialog --center -p NEEDED_DIALOG`" + fi +} +export -f progressbar_info + #tall or wide orientation in the Ziggy UI UI_ORIENT="$(cat /var/local/petget/uo_choice 2>/dev/null)" [ "$UI_ORIENT" != "" ] && UI_ORIENT="$UI_ORIENT" || UI_ORIENT="wide" @@ -664,6 +704,7 @@ S='VBOX_MAIN + while [ -s /tmp/petget/install_status -a "$(ps aux|grep PPM_GUI|grep gtkdialog|wc -l)" -gt 2 ]; do cat /tmp/petget/install_status_percent; cat /tmp/petget/install_status; sleep 0.5; done enable:VBOX_MAIN @@ -678,6 +719,8 @@ S='echo "" > /tmp/petget/install_status '"`/usr/lib/gtkdialog/xml_scalegrip`"' + progressbar_info + kill -9 '$SPID'