|
|
|
@ -131,12 +131,14 @@ void on_save(){
|
|
|
|
*(add) = 1;
|
|
|
|
*(add) = 1;
|
|
|
|
char *old_name=NULL;
|
|
|
|
char *old_name=NULL;
|
|
|
|
gtk_tree_model_get(GTK_TREE_MODEL(main_config.tree_store),&iter,1,&name_flagged,3,&origin_flagged,4,&repostatus,6,&old_name,7,&renamed,-1);
|
|
|
|
gtk_tree_model_get(GTK_TREE_MODEL(main_config.tree_store),&iter,1,&name_flagged,3,&origin_flagged,4,&repostatus,6,&old_name,7,&renamed,-1);
|
|
|
|
yon_window_config_add_custom_parameter(yon_char_unite(origin_flagged,"/",name_flagged,NULL),"repos",add,YON_TYPE_INT);
|
|
|
|
|
|
|
|
if (repostatus==-1) {
|
|
|
|
if (repostatus==-1) {
|
|
|
|
|
|
|
|
yon_window_config_erase_custom_parameter(yon_char_unite(origin_flagged,"/",name_flagged,NULL),"repos");
|
|
|
|
remove_command = yon_char_unite("rm -rdf ",origin_flagged,"/",name_flagged,NULL);
|
|
|
|
remove_command = yon_char_unite("rm -rdf ",origin_flagged,"/",name_flagged,NULL);
|
|
|
|
system (remove_command);
|
|
|
|
system (remove_command);
|
|
|
|
gtk_tree_store_remove(main_config.tree_store,&iter);
|
|
|
|
gtk_tree_store_remove(main_config.tree_store,&iter);
|
|
|
|
continue; }
|
|
|
|
continue; }
|
|
|
|
|
|
|
|
else if (repostatus==1)
|
|
|
|
|
|
|
|
yon_window_config_add_custom_parameter(yon_char_unite(origin_flagged,"/",name_flagged,NULL),"repos",add,YON_TYPE_INT);
|
|
|
|
// if (!strstr(name_flagged,".db.tar.gz")) name_flagged = yon_char_append(name_flagged,".db.tar.gz");
|
|
|
|
// if (!strstr(name_flagged,".db.tar.gz")) name_flagged = yon_char_append(name_flagged,".db.tar.gz");
|
|
|
|
remove_command = yon_char_unite(command," remove -d ", origin_flagged, " -r ", name_flagged, NULL);
|
|
|
|
remove_command = yon_char_unite(command," remove -d ", origin_flagged, " -r ", name_flagged, NULL);
|
|
|
|
add_command = yon_char_unite(command," add -d ", origin_flagged, " -r ", name_flagged, NULL);
|
|
|
|
add_command = yon_char_unite(command," add -d ", origin_flagged, " -r ", name_flagged, NULL);
|
|
|
|
|