|
|
|
|
@ -1244,7 +1244,7 @@ void yon_config_load_update(main_window *widgets){
|
|
|
|
|
char *name = yon_char_new(storages[i]);
|
|
|
|
|
free(yon_char_divide(name,yon_char_find_last(name,'/')));
|
|
|
|
|
gtk_tree_store_append(widgets->RepoList,&iter,NULL);
|
|
|
|
|
gtk_tree_store_set(widgets->RepoList,&iter,1,folder_no_edits,2,name,3,storages[i],-1);
|
|
|
|
|
gtk_tree_store_set(widgets->RepoList,&iter,0,folder_no_edits,2,name,3,storages[i],-1);
|
|
|
|
|
free(name);
|
|
|
|
|
yon_window_config_get_parameter("storage_info",storages[i],&name,YON_TYPE_STRING);
|
|
|
|
|
if (!yon_char_is_empty(name)){
|
|
|
|
|
@ -1254,14 +1254,23 @@ void yon_config_load_update(main_window *widgets){
|
|
|
|
|
char *nm = yon_char_new(name_parsed[j]);
|
|
|
|
|
free(yon_char_divide(nm,yon_char_find_last(nm,'/')));
|
|
|
|
|
gtk_tree_store_append(widgets->RepoList,&itar,&iter);
|
|
|
|
|
gtk_tree_store_set(widgets->RepoList,&itar,1,document_no_edits,3,name_parsed[j],2,nm,-1);
|
|
|
|
|
gtk_tree_store_set(widgets->RepoList,&itar,2,nm,3,name_parsed[j],-1);
|
|
|
|
|
int size;
|
|
|
|
|
config_str dirs = yon_file_list_dirs(name_parsed[j],&size);
|
|
|
|
|
for (int k=0;k<size;k++){
|
|
|
|
|
if (strcmp(dirs[k],"pool")&&strcmp(dirs[k],nm)){
|
|
|
|
|
char *arch_path = yon_char_unite(name_parsed[j],"/",dirs[k],NULL);
|
|
|
|
|
int arch_status = system(yon_repo_get_signature_status_arch(storages[i],nm,dirs[k]));
|
|
|
|
|
int packages_status = system(yon_repo_get_signature_status_packages(storages[i],nm,dirs[k]));
|
|
|
|
|
char *sign_status_image = "";
|
|
|
|
|
if (arch_status==2||packages_status==2)
|
|
|
|
|
sign_status_image = warning_icon_name;
|
|
|
|
|
else if (!arch_status&&!packages_status){
|
|
|
|
|
sign_status_image = key_icon_name;
|
|
|
|
|
} else
|
|
|
|
|
sign_status_image = "";
|
|
|
|
|
gtk_tree_store_append(widgets->RepoList,&childiter,&itar);
|
|
|
|
|
gtk_tree_store_set(widgets->RepoList,&childiter,1,folder_no_edits,2,dirs[k],3,arch_path,-1);
|
|
|
|
|
gtk_tree_store_set(widgets->RepoList,&childiter,0,sign_status_image,2,dirs[k],3,arch_path,-1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
free(nm);
|
|
|
|
|
@ -1412,8 +1421,14 @@ void on_main_tree_selection_changed(GtkWidget *self, main_window *widgets){
|
|
|
|
|
config_str load = yon_config_load(yon_get_package_name_from_filename(name),&load_size);
|
|
|
|
|
if (load_size>0){
|
|
|
|
|
yon_char_remove_last_symbol(load[0],'\n');
|
|
|
|
|
int package_status = system(yon_debug_output("%s\n",yon_repo_get_signature_status(storage,repo,arch,load[0])));
|
|
|
|
|
char *sign_status_icon = "";
|
|
|
|
|
if (!package_status)
|
|
|
|
|
sign_status_icon = package_signature_icon_name;
|
|
|
|
|
else
|
|
|
|
|
sign_status_icon = package_signature_error_icon_name;
|
|
|
|
|
gtk_list_store_append(widgets->RepoFileList,&itar);
|
|
|
|
|
gtk_list_store_set(widgets->RepoFileList,&itar,1,line[0],2,line[1],-1);
|
|
|
|
|
gtk_list_store_set(widgets->RepoFileList,&itar,0,sign_status_icon,1,line[0],2,line[1],-1);
|
|
|
|
|
yon_char_parsed_free(load,load_size);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
|