|
|
|
|
@ -1101,11 +1101,21 @@ void *yon_proprietary_local_get(main_window *widgets){
|
|
|
|
|
for (int i=0;i<packages_size;i++){
|
|
|
|
|
yon_char_remove_last_symbol(packages[i],'\n');
|
|
|
|
|
g_hash_table_add(table,packages[i]);
|
|
|
|
|
printf("%s\n",packages[i]);
|
|
|
|
|
}
|
|
|
|
|
free(packages);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int installed_size;
|
|
|
|
|
config_str installed_packages = yon_config_load(yon_get_add_installed_packages,&installed_size);
|
|
|
|
|
GHashTable *installed = g_hash_table_new_full(g_str_hash,g_str_equal,free,NULL);
|
|
|
|
|
if (installed_packages){
|
|
|
|
|
for (int i=0;i<installed_size;i++){
|
|
|
|
|
yon_char_remove_last_symbol(installed_packages[i],'\n');
|
|
|
|
|
g_hash_table_add(installed,installed_packages[i]);
|
|
|
|
|
}
|
|
|
|
|
free(installed_packages);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
g_idle_add((GSourceFunc)yon_proprietary_disconnect,widgets);
|
|
|
|
|
for (int dr_desc=1;dr_desc<size;dr_desc++){
|
|
|
|
|
int current_size;
|
|
|
|
|
@ -1116,8 +1126,8 @@ void *yon_proprietary_local_get(main_window *widgets){
|
|
|
|
|
g_hash_table_contains(table,current[1]))||
|
|
|
|
|
(!yon_char_is_empty(current[2])&&
|
|
|
|
|
g_hash_table_contains(table,current[2]))){
|
|
|
|
|
int module_status = !yon_char_is_empty(current[1])?yon_char_parsed_check_exist(kernels_installed,kernels_size,current[1])>-1:0;
|
|
|
|
|
int package_status = !yon_char_is_empty(current[2])?yon_char_parsed_check_exist(kernels_installed,kernels_size,current[2])>-1:0;
|
|
|
|
|
int module_status = !yon_char_is_empty(current[1])?g_hash_table_contains(installed,current[1]):0;
|
|
|
|
|
int package_status = !yon_char_is_empty(current[2])?g_hash_table_contains(installed,current[2]):0;
|
|
|
|
|
struct proprietary_struct *cur = malloc(sizeof(struct proprietary_struct));
|
|
|
|
|
cur->drivers=current;
|
|
|
|
|
cur->drivers_size=current_size;
|
|
|
|
|
@ -1133,6 +1143,7 @@ void *yon_proprietary_local_get(main_window *widgets){
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
g_hash_table_unref(table);
|
|
|
|
|
g_hash_table_unref(installed);
|
|
|
|
|
if (!size){
|
|
|
|
|
g_idle_add((GSourceFunc)yon_proprietary_connect,widgets);
|
|
|
|
|
}
|
|
|
|
|
|