diff --git a/archive/NerdTools-2022.10.09-x86_64-1.txz b/archive/NerdTools-2022.10.09-x86_64-1.txz new file mode 100644 index 0000000..3f1754f Binary files /dev/null and b/archive/NerdTools-2022.10.09-x86_64-1.txz differ diff --git a/plugin/NerdTools.plg b/plugin/NerdTools.plg index 4069c5d..9a1365b 100644 --- a/plugin/NerdTools.plg +++ b/plugin/NerdTools.plg @@ -3,8 +3,8 @@ - - + + @@ -17,6 +17,8 @@ ##&name; +###2022.10.09 +- Fix reinstall packages ###2022.10.08 - The plugins column is changed by the current version - The functionality to compare old versions is updated diff --git a/source/NerdTools/usr/local/emhttp/plugins/NerdTools/scripts/packagemanager b/source/NerdTools/usr/local/emhttp/plugins/NerdTools/scripts/packagemanager index dedce10..2dbed76 100755 --- a/source/NerdTools/usr/local/emhttp/plugins/NerdTools/scripts/packagemanager +++ b/source/NerdTools/usr/local/emhttp/plugins/NerdTools/scripts/packagemanager @@ -71,7 +71,7 @@ foreach ($pkg_cfg as $pkg_name => $pkg_pref) { // get preferences for each packa $pkg_name = str_replace('__', '.', $pkg_name); // replace "_" with "." in package names $pkg_pattern = '/^'.$pkg_name.'.-*/'; // search pattern for packages $pkg_patternd = '/^'.$pkg_name.'.*_nerdtools.*/'; // search pattern for packages - $pkg_install_status = !empty(preg_grep($pkg_pattern, $pkgs_installed)); // check install status + $pkg_install_status = !empty(preg_grep($pkg_patternd, $pkgs_installed)); // check install status $pkg_download_status = !empty(preg_grep($pkg_patternd, $pkgs_downloaded)); // check package download status $pkg_online_status = !empty(preg_grep($pkg_pattern, $pkgs_github_array)); $pkg_find .= " ! -name '".$pkg_name."*'"; @@ -122,8 +122,9 @@ foreach ($pkg_cfg as $pkg_name => $pkg_pref) { // get preferences for each packa } if (!$pkg_install_status) { // if package is not installed + //logger('upgradepkg --install-new --reinstall '.$pkg_extra_path.$pkg_name.'*_nerdtools.txz'); $pkg_msg = 'Installing'; - $pkg_cmd = 'upgradepkg --install-new '.$pkg_extra_path.$pkg_name.'*_nerdtools.txz 2>&1'; + $pkg_cmd = 'upgradepkg --install-new --reinstall '.$pkg_extra_path.$pkg_name.'*_nerdtools.txz 2>&1'; } } elseif ($pkg_pref == 'no' && $pkg_download_status && $argu) {