diff --git a/support/functions/_plugin_update_toolchain b/support/functions/_plugin_update_toolchain index cc4f6bc..55a73df 100644 --- a/support/functions/_plugin_update_toolchain +++ b/support/functions/_plugin_update_toolchain @@ -3,7 +3,7 @@ #simplebuild_plugin tcupdate tcupdate(){ - pversion="0.23.0"; + pversion="0.23.1"; pname="s3.TUP"; pdesc="Plugin $pname v$pversion"; configname="$configdir/plugin_update_toolchain.config"; @@ -1238,6 +1238,19 @@ _check_pkg(){ if syscheck "" "" "${pkgs[*]}" "${headers[*]}" "${libs[*]}";then echo -e "${r_l}\nSYSCHECK -> ${txt_s3tup_msg_syscheck2}\n${y_l}${prefix} install${packages}\n${re_}" && _paktc_timer 10; fi; + + dialog_ver="$(dialog --version | awk -F' |-' '{printf $2}')" && [ -z $dialog_ver ] && dialog_ver="0" + if [ $(_compare_version "$dialog_ver" "1.3") == "<" ];then + dialog_compile="DIALOG_BIN=\$(which dialog) \ + \n\$DIALOG_BIN --version \ + \npushd /tmp && wget https://invisible-island.net/datafiles/release/dialog.tar.gz \ + \ntar -xf dialog.tar.gz \ + \ncd \$(find . -mindepth 1 -maxdepth 1 -type d -printf '%f\\\n' | grep dialog-) \ + \n./configure && make \ + \nsudo cp \$DIALOG_BIN \$DIALOG_BIN.old && sudo mv dialog \$DIALOG_BIN \ + \npopd && \$DIALOG_BIN --version" + echo -e "${r_l}\nSYSCHECK -> ${txt_s3tup_msg_syscheck3}\n${y_l}${dialog_compile}\n${re_}" && _paktc_timer 10; + fi; }; _check_github_api_limits(){ diff --git a/support/translation/bg b/support/translation/bg index 8547d43..fa876e4 100644 --- a/support/translation/bg +++ b/support/translation/bg @@ -140,6 +140,7 @@ txt_s3tup_msg_update_finished="Update completed to version:" txt_s3tup_msg_update_log="updating plugin log" txt_s3tup_msg_syscheck1="Моля изчакайте докато се извършат проверките на необходимите инструменти и зависимости..." txt_s3tup_msg_syscheck2="Нужно е ръчно да инсталираш следните пакети, за да може да ползваш съответно плъгина:" +txt_s3tup_msg_syscheck3="Your dialog binary seems to be outdated, this plugin requires dialog >= 1.3 to display menus correctly. If your distribution does not provide a recent version, please compile and update it manually as follows:\n" txt_s3tup_msg_reset_config1="Премествам съществуващия конфиг файл..." txt_s3tup_msg_reset_config2="бекъп на конфиг файл=" txt_s3tup_msg_reset_config3="Създаване нов конфиг файл. Моля почакайте..." diff --git a/support/translation/de b/support/translation/de index 0ccf110..ab2ea96 100644 --- a/support/translation/de +++ b/support/translation/de @@ -149,6 +149,7 @@ txt_s3tup_msg_update_finished="Update abgeschlossen auf Version:" txt_s3tup_msg_update_log="Aktualisierung Plugin Log" txt_s3tup_msg_syscheck1="Bitte warten während die Abhängigkeiten überprüft werden..." txt_s3tup_msg_syscheck2="Um dieses Plugin ordnungsgemäß verwenden zu können, müssen folgende Pakete manuell installiert werden:" +txt_s3tup_msg_syscheck3="Das dialog-Programm scheint veraltet zu sein. Für dieses Plugin ist dialog-Version >=1.3 erforderlich, um Menüs korrekt anzuzeigen. Wenn deine Linux Distribution keine aktuelle Version von dialog enthält, dann bitte wie folgt manuell kompilieren und aktualisieren:\n" txt_s3tup_msg_reset_config1="Verschiebe vorhandene Konfigurationsdatei..." txt_s3tup_msg_reset_config2="Konfigurationsdatei-Backup=" txt_s3tup_msg_reset_config3="Konfigurationsdatei wird erstellt. Bitte warten..." diff --git a/support/translation/en b/support/translation/en index dcc5eaa..ad343a7 100644 --- a/support/translation/en +++ b/support/translation/en @@ -140,6 +140,7 @@ txt_s3tup_msg_update_finished="Update completed to version:" txt_s3tup_msg_update_log="updating plugin log" txt_s3tup_msg_syscheck1="Please wait while performing checks of required tools and dependencies..." txt_s3tup_msg_syscheck2="You need to manually install the following packages to use this plugin properly:" +txt_s3tup_msg_syscheck3="Your dialog binary seems to be outdated, this plugin requires dialog >= 1.3 to display menus correctly. If your distribution does not provide a recent version, please compile and update it manually as follows:\n" txt_s3tup_msg_reset_config1="Moving existing config file..." txt_s3tup_msg_reset_config2="config file backup=" txt_s3tup_msg_reset_config3="Creating new config file. Please wait..." diff --git a/support/translation/es b/support/translation/es index 6d6f67c..231fd60 100644 --- a/support/translation/es +++ b/support/translation/es @@ -128,6 +128,7 @@ txt_s3tup_msg_update_finished="Actualización terminada a la versión:" txt_s3tup_msg_update_log="Actualizando log plugin" txt_s3tup_msg_syscheck1="Por favor, espera mientras compruebo las herramientas y dependencias necesarias..." txt_s3tup_msg_syscheck2="Necesitas instalar manualmente los siguientes paquetes para usar este plugin correctamente:" +txt_s3tup_msg_syscheck3="Your dialog binary seems to be outdated, this plugin requires dialog >= 1.3 to display menus correctly. If your distribution does not provide a recent version, please compile and update it manually as follows:\n" txt_s3tup_msg_reset_config1="Moviendo el archivo de configuración existente..." txt_s3tup_msg_reset_config2="copia archivo de config=" txt_s3tup_msg_reset_config3="Creando un nuevo archivo de configuración. Por favor, espera..." diff --git a/support/translation/fr b/support/translation/fr index b13b547..670c416 100644 --- a/support/translation/fr +++ b/support/translation/fr @@ -180,6 +180,7 @@ txt_s3tup_msg_update_finished="Update completed to version:" txt_s3tup_msg_update_log="updating plugin log" txt_s3tup_msg_syscheck1="Please wait while performing checks of required tools and dependencies..." txt_s3tup_msg_syscheck2="You need to manually install the following packages to use this plugin properly:" +txt_s3tup_msg_syscheck3="Your dialog binary seems to be outdated, this plugin requires dialog >= 1.3 to display menus correctly. If your distribution does not provide a recent version, please compile and update it manually as follows:\n" txt_s3tup_msg_reset_config1="Moving existing config file..." txt_s3tup_msg_reset_config2="config file backup=" txt_s3tup_msg_reset_config3="Creating new config file. Please wait..." diff --git a/support/translation/it b/support/translation/it index 6cc76f9..48aad6b 100644 --- a/support/translation/it +++ b/support/translation/it @@ -207,6 +207,7 @@ txt_s3tup_msg_update_finished="Aggiornamento effettuato alla versione:" txt_s3tup_msg_update_log="sto aggiornando il log dei plugin" txt_s3tup_msg_syscheck1="Attendi mentre eseguo il controllo degli strumenti e delle dipendenze richiesti ..." txt_s3tup_msg_syscheck2="È necessario installare manualmente i seguenti pacchetti per utilizzare correttamente questo plugin:" +txt_s3tup_msg_syscheck3="Your dialog binary seems to be outdated, this plugin requires dialog >= 1.3 to display menus correctly. If your distribution does not provide a recent version, please compile and update it manually as follows:\n" txt_s3tup_msg_reset_config1="Spostamento del file di configurazione esistente ..." txt_s3tup_msg_reset_config2="backup del file di configurazione=" txt_s3tup_msg_reset_config3="Creazione di un nuovo file di configurazione. Attendere..." diff --git a/support/translation/nl b/support/translation/nl index b1fe5d4..537af1b 100644 --- a/support/translation/nl +++ b/support/translation/nl @@ -143,6 +143,7 @@ txt_s3tup_msg_update_finished="Update completed to version:" txt_s3tup_msg_update_log="updating plugin log" txt_s3tup_msg_syscheck1="Please wait while performing checks of required tools and dependencies..." txt_s3tup_msg_syscheck2="You need to manually install the following packages to use this plugin properly:" +txt_s3tup_msg_syscheck3="Your dialog binary seems to be outdated, this plugin requires dialog >= 1.3 to display menus correctly. If your distribution does not provide a recent version, please compile and update it manually as follows:\n" txt_s3tup_msg_reset_config1="Moving existing config file..." txt_s3tup_msg_reset_config2="config file backup=" txt_s3tup_msg_reset_config3="Creating new config file. Please wait..." diff --git a/support/translation/pl b/support/translation/pl index 9570494..23ccd6d 100644 --- a/support/translation/pl +++ b/support/translation/pl @@ -143,6 +143,7 @@ txt_s3tup_msg_update_finished="Update completed to version:" txt_s3tup_msg_update_log="updating plugin log" txt_s3tup_msg_syscheck1="Please wait while performing checks of required tools and dependencies..." txt_s3tup_msg_syscheck2="You need to manually install the following packages to use this plugin properly:" +txt_s3tup_msg_syscheck3="Your dialog binary seems to be outdated, this plugin requires dialog >= 1.3 to display menus correctly. If your distribution does not provide a recent version, please compile and update it manually as follows:\n" txt_s3tup_msg_reset_config1="Moving existing config file..." txt_s3tup_msg_reset_config2="config file backup=" txt_s3tup_msg_reset_config3="Creating new config file. Please wait..." diff --git a/support/translation/pt b/support/translation/pt index 4a52264..451f710 100644 --- a/support/translation/pt +++ b/support/translation/pt @@ -180,6 +180,7 @@ txt_s3tup_msg_update_finished="Update completed to version:" txt_s3tup_msg_update_log="updating plugin log" txt_s3tup_msg_syscheck1="Please wait while performing checks of required tools and dependencies..." txt_s3tup_msg_syscheck2="You need to manually install the following packages to use this plugin properly:" +txt_s3tup_msg_syscheck3="Your dialog binary seems to be outdated, this plugin requires dialog >= 1.3 to display menus correctly. If your distribution does not provide a recent version, please compile and update it manually as follows:\n" txt_s3tup_msg_reset_config1="Moving existing config file..." txt_s3tup_msg_reset_config2="config file backup=" txt_s3tup_msg_reset_config3="Creating new config file. Please wait..." diff --git a/support/translation/tr b/support/translation/tr index 46a44b0..0014130 100644 --- a/support/translation/tr +++ b/support/translation/tr @@ -146,6 +146,7 @@ txt_s3tup_msg_update_finished="Update completed to version:" txt_s3tup_msg_update_log="updating plugin log" txt_s3tup_msg_syscheck1="baglanti uygulana kadar lütfen bekleyiniz ..." txt_s3tup_msg_syscheck2="bu plugini düzgün kullanmak için,aşağıdaki paketlerin manuel olarak yüklenmesi gerekir:" +txt_s3tup_msg_syscheck3="Your dialog binary seems to be outdated, this plugin requires dialog >= 1.3 to display menus correctly. If your distribution does not provide a recent version, please compile and update it manually as follows:\n" txt_s3tup_msg_reset_config1="Hareket Yapılandırma dosyası..." txt_s3tup_msg_reset_config2="Hareket-Backup=" txt_s3tup_msg_reset_config3="Hareket dosya gürleştiriyor lütfen bekleyiniz..."