Added dependenced packages/modules deleting with packages and modules

pull/51/head
parent 271ee4303c
commit e26355b2cf

@ -667,6 +667,14 @@ void on_module_remove_accept(GtkWidget *, dictionary *dict){
modules_to_install = temp;
}
}
}else {
int size;
config_str tmp = yon_config_load(get_dependent_command(modules_to_install),&size);
for (int i=0;i<size;i++){
yon_char_remove_last_symbol(tmp[i],'\n');
}
modules_to_install = yon_char_parsed_to_string(tmp,size," ");
}
char *command = remove_command(modules_to_install);
yon_command_execute_async(command,widgets);
@ -696,6 +704,14 @@ void on_package_remove_accept(GtkWidget *, dictionary *dict){
modules_to_install = temp;
}
}
}else {
int size;
config_str tmp = yon_config_load(get_dependent_command(modules_to_install),&size);
for (int i=0;i<size;i++){
yon_char_remove_last_symbol(tmp[i],'\n');
}
modules_to_install = yon_char_parsed_to_string(tmp,size," ");
}
char *command = remove_command(modules_to_install);
yon_command_execute_async(command,widgets);

Loading…
Cancel
Save