|
|
|
|
@ -214,7 +214,7 @@ void on_move_accept(GtkWidget *self, dictionary *dict){
|
|
|
|
|
for_iter(model,&iter){
|
|
|
|
|
char *path;
|
|
|
|
|
gtk_tree_model_get(model,&iter,2,&path,-1);
|
|
|
|
|
yon_char_parsed_add_or_create_if_exists(parsed, &size,path);
|
|
|
|
|
yon_char_parsed_add_or_create_if_exists(parsed, &size,path+(yon_char_find_last(path,'/')>-1?yon_char_find_last(path,'/')+1:0));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!size) {
|
|
|
|
|
@ -225,7 +225,7 @@ void on_move_accept(GtkWidget *self, dictionary *dict){
|
|
|
|
|
char *packages = yon_char_parsed_to_string(parsed,size," ");
|
|
|
|
|
char *command = NULL;
|
|
|
|
|
command = yon_move_packages_command(storage,arch,source_repo,target_repo,packages,repo_sign);
|
|
|
|
|
if (system(command)){
|
|
|
|
|
if (system(yon_debug_output("%s\n",command))){
|
|
|
|
|
yon_ubl_status_box_render(PACKAGES_MOVE_ERROR_LABEL,BACKGROUND_IMAGE_FAIL_TYPE);
|
|
|
|
|
} else {
|
|
|
|
|
yon_ubl_status_box_render(PACKAGES_MOVE_SUCCESS_LABEL,BACKGROUND_IMAGE_SUCCESS_TYPE);
|
|
|
|
|
|