|
|
|
|
@ -123,7 +123,6 @@ void on_load(){
|
|
|
|
|
char *pack_signed = NULL;
|
|
|
|
|
yon_window_config_get_parameter("signatures",parameter_string,&pack_signed,YON_TYPE_STRING);
|
|
|
|
|
FILE *file = popen(get_saved_package_info_command(path,parameter_string),"r");
|
|
|
|
|
printf("%s\n",get_saved_package_info_command(path,parameter_string));
|
|
|
|
|
char *cur_string=g_malloc0(sizeof(char)*4096);
|
|
|
|
|
char *packname=NULL, *packver=NULL, *packarch=NULL, *packdepends=NULL;
|
|
|
|
|
while (fgets(cur_string,4096,file)){
|
|
|
|
|
@ -134,13 +133,13 @@ void on_load(){
|
|
|
|
|
else if (strstr(p,"Architecture")) packarch = yon_char_new(steer);
|
|
|
|
|
else if (strstr(p,"Depends On")) packdepends = yon_char_new(steer);
|
|
|
|
|
}
|
|
|
|
|
free(cur_string);
|
|
|
|
|
gtk_tree_store_append(main_config.tree_store,&packIter,&iter);
|
|
|
|
|
gtk_tree_store_set(main_config.tree_store,&packIter,0,document_no_edits,1,yon_char_unite(packname,"-",packver,"-",packarch,NULL),2,yon_char_unite(path,"/pool/overlay/",parameter_string,NULL),3,0,4,0,9,packname,10,packver,11,packarch,12,packdepends,13,pack_signed,-1);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
for (int j=0;j<packsize;j++){
|
|
|
|
|
char *command = get_saved_package_info_command(path,packs[j]);
|
|
|
|
|
printf("%s\n",get_saved_package_info_command(path,parameter_string));
|
|
|
|
|
char *pack_signed = NULL;
|
|
|
|
|
yon_window_config_get_parameter("signatures",packs[j],&pack_signed,YON_TYPE_STRING);
|
|
|
|
|
FILE *file = popen(command,"r");
|
|
|
|
|
|