|
|
|
|
@ -204,8 +204,9 @@ char *yon_packages_get_groups(enum YON_PACKAGES_DB_TYPE type, const char *packag
|
|
|
|
|
int size = alpm_list_count(groups);
|
|
|
|
|
|
|
|
|
|
for (int i=0;i<size;i++){
|
|
|
|
|
if (yon_char_parsed_check_exist(groups_list,parsed_size,groups->data)==-1){
|
|
|
|
|
yon_char_parsed_add_or_create_if_exists(groups_list,&parsed_size,yon_char_new(groups->data));
|
|
|
|
|
alpm_list_t *cur_data = alpm_list_nth(groups,i);
|
|
|
|
|
if (yon_char_parsed_check_exist(groups_list,parsed_size,cur_data->data)==-1){
|
|
|
|
|
yon_char_parsed_add_or_create_if_exists(groups_list,&parsed_size,yon_char_new(cur_data->data));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
char *final = yon_char_parsed_to_string(groups_list,parsed_size,", ");
|
|
|
|
|
|