|
|
|
|
@ -107,10 +107,12 @@ void on_load(){
|
|
|
|
|
for (int i=0;i<size;i++){
|
|
|
|
|
char *name = yon_char_new(repos[i]);
|
|
|
|
|
char *path = yon_char_new(name);
|
|
|
|
|
char *repo_signature = NULL;
|
|
|
|
|
yon_char_divide(name,yon_char_find_last(name,'/'));
|
|
|
|
|
GtkTreeIter iter;
|
|
|
|
|
gtk_tree_store_append(main_config.tree_store,&iter,NULL);
|
|
|
|
|
gtk_tree_store_set(main_config.tree_store,&iter,0,folder_no_edits,1,name,2,path,3,0,4,0,9,name,-1);
|
|
|
|
|
yon_window_config_get_parameter("signatures",repos[i],(void*)&repo_signature,YON_TYPE_STRING);
|
|
|
|
|
gtk_tree_store_set(main_config.tree_store,&iter,0,folder_no_edits,1,name,2,path,3,0,4,0,9,name,13,repo_signature,-1);
|
|
|
|
|
char *parameter_string = NULL;
|
|
|
|
|
yon_window_config_get_parameter("repos",repos[i],(void*)¶meter_string,YON_TYPE_STRING);
|
|
|
|
|
if (parameter_string){
|
|
|
|
|
@ -176,6 +178,7 @@ void on_save(){
|
|
|
|
|
char *packnames = NULL;
|
|
|
|
|
char *sign_flagged = NULL;
|
|
|
|
|
char *repo_sign_flagged = NULL;
|
|
|
|
|
char *repo_sign_flagged_full = NULL;
|
|
|
|
|
int repostatus=0;
|
|
|
|
|
gboolean renamed=0;
|
|
|
|
|
char *old_name=NULL;
|
|
|
|
|
@ -185,6 +188,7 @@ void on_save(){
|
|
|
|
|
char *remove_packages=NULL;
|
|
|
|
|
|
|
|
|
|
gtk_tree_model_get(GTK_TREE_MODEL(main_config.tree_store),&iter,1,&name_flagged,2,&origin_flagged,3,&repostatus,4,&old_name,5,&renamed,13,&repo_sign_flagged,-1);
|
|
|
|
|
repo_sign_flagged_full = yon_char_new(repo_sign_flagged);
|
|
|
|
|
yon_char_divide_search(repo_sign_flagged,"<",-1);
|
|
|
|
|
repo_sign_flagged=yon_char_divide_search(repo_sign_flagged,">",-1);
|
|
|
|
|
if (repostatus == 1) gtk_tree_store_set(main_config.tree_store,&iter,0,folder_no_edits,3,0,-1);
|
|
|
|
|
@ -307,6 +311,11 @@ void on_save(){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (repo_sign_flagged){
|
|
|
|
|
char *repo_sign_command = yon_char_unite(command, " add -f -d ",origin_flagged, " -r ", name_flagged, " --sign-repo ", repo_sign_flagged ,NULL);
|
|
|
|
|
yon_window_config_add_custom_parameter(yon_char_unite(origin_flagged,NULL),"signatures",repo_sign_flagged_full,YON_TYPE_STRING);
|
|
|
|
|
system(repo_sign_command);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|