async & fix dependencies

This commit is contained in:
jsavargas 2023-05-15 13:11:28 -04:00
parent 9854f3f6cc
commit f472bfb228
2 changed files with 4 additions and 1 deletions

View File

@ -67,7 +67,7 @@ foreach ($pkgs_github_array as $pkg_github) {
$pkg = [ $pkg = [
'name' => str_replace("_nerdtools.txz",".txz",$pkg_github['name']) , // add full package name 'name' => str_replace("_nerdtools.txz",".txz",$pkg_github['name']) , // add full package name
'dependencies' => $depends_file_array[$pkg_name] ? str_replace(array(" ",","), array("",", "), $depends_file_array[$pkg_name]) : '', // add package name only 'dependencies' => $depends_file_array[$pkg_name] ?? "" ? str_replace(array(" ",","), array("",", "), $depends_file_array[$pkg_name]) : '',
'pkgname' => $pkg_name, // add package name only 'pkgname' => $pkg_name, // add package name only
'pkgnver' => $pkg_nver, // add package name with underscored version 'pkgnver' => $pkg_nver, // add package name with underscored version
'pkgversion' => $pkg_version, // add package name with raw version 'pkgversion' => $pkg_version, // add package name with raw version

View File

@ -135,6 +135,9 @@ function Apply() {
function checkDepends() { function checkDepends() {
try { try {
$.ajaxSetup({
async: false
});
$.getJSON('/plugins/NerdTools/include/CheckDepends.php', function(data) { $.getJSON('/plugins/NerdTools/include/CheckDepends.php', function(data) {
console.log(data) console.log(data)
$.each(data,function(index, value){ $.each(data,function(index, value){