Packages info getting function fixes

pull/64/head
parent 80da16aa24
commit 2522cb4d91

@ -314,24 +314,24 @@ yon_packages_info *yon_packages_get_info_struct(enum YON_PACKAGES_DB_TYPE type,
char *yon_packages_get_info_string(yon_packages_info *info){ char *yon_packages_get_info_string(yon_packages_info *info){
char *packager = yon_char_return_if_exist(info->packager,""); char *packager = yon_char_return_if_exist(info->packager,"");
char *info_label = yon_char_unite( char *info_label = yon_char_unite(
"<b>Repository</b> :",yon_char_return_if_exist(info->repo_name,""),"\n", "<b>",_("Repository"),"</b>\t\t:",yon_char_return_if_exist(info->repo_name,""),"\n",
"<b>Name</b> :",yon_char_return_if_exist(info->package_name,""),"\n", "<b>",_("Name"),"</b>\t\t\t:",yon_char_return_if_exist(info->package_name,""),"\n",
"<b>Version</b> :",yon_char_return_if_exist(info->version,""),"\n", "<b>",_("Version"),"</b>\t\t:",yon_char_return_if_exist(info->version,""),"\n",
"<b>Description</b> :",yon_char_return_if_exist(info->description,""),"\n", "<b>",_("Description"),"</b>\t:",yon_char_return_if_exist(info->description,""),"\n",
"<b>Architecture</b> :",yon_char_return_if_exist(info->architecture,""),"\n", "<b>",_("Architecture"),"</b>\t:",yon_char_return_if_exist(info->architecture,""),"\n",
"<b>URL</b> :",yon_char_return_if_exist(info->url,""),"\n", "<b>",_("URL"),"</b>\t\t\t:",yon_char_return_if_exist(info->url,""),"\n",
"<b>Licenses</b> :",yon_char_return_if_exist(info->licence,""),"\n", "<b>",_("Licenses"),"</b>\t\t:",yon_char_return_if_exist(info->licence,""),"\n",
"<b>Groups</b> :",yon_char_return_if_exist(info->groups,""),"\n", "<b>",_("Groups"),"</b>\t\t\t:",yon_char_return_if_exist(info->groups,""),"\n",
"<b>Provides</b> :",yon_char_return_if_exist(info->provides,""),"\n", "<b>",_("Provides"),"</b>\t\t:",yon_char_return_if_exist(info->provides,""),"\n",
"<b>Depends On</b> :",yon_char_return_if_exist(info->depends,""),"\n", "<b>",_("Depends On"),"</b>\t:",yon_char_return_if_exist(info->depends,""),"\n",
"<b>Optional Deps</b> :",yon_char_return_if_exist(info->optional_depends,""),"\n", "<b>",_("Optional Deps"),"</b>\t:",yon_char_return_if_exist(info->optional_depends,""),"\n",
"<b>Conflicts With</b> :",yon_char_return_if_exist(info->conflicts,""),"\n", "<b>",_("Conflicts With"),"</b>\t:",yon_char_return_if_exist(info->conflicts,""),"\n",
"<b>Replaces</b> :",yon_char_return_if_exist(info->replaces,""),"\n", "<b>",_("Replaces"),"</b>\t\t:",yon_char_return_if_exist(info->replaces,""),"\n",
"<b>Download Size</b> :",yon_char_return_if_exist(info->download_size,""),"\n", "<b>",_("Download Size"),"</b>\t:",yon_char_return_if_exist(info->download_size,""),"\n",
"<b>Installed Size</b> :",yon_char_return_if_exist(info->install_size,""),"\n", "<b>",_("Installed Size"),"</b>\t:",yon_char_return_if_exist(info->install_size,""),"\n",
"<b>Packager</b> :",g_markup_escape_text(packager,strlen(packager)),"\n", "<b>",_("Packager"),"</b>\t\t:",g_markup_escape_text(packager,strlen(packager)),"\n",
"<b>Build Date</b> :",yon_char_return_if_exist(info->build_date,""),"\n", "<b>",_("Build Date"),"</b>\t\t:",yon_char_return_if_exist(info->build_date,""),"\n",
"<b>Validated By</b> :",yon_char_return_if_exist(info->architecture,""), // "<b>",_("Validated By"),"</b>\t:",yon_char_return_if_exist(info->architecture,""),
NULL); NULL);
return info_label; return info_label;
} }

@ -3,6 +3,7 @@
#include <gtk/gtk.h> #include <gtk/gtk.h>
#include <gdk/gdk.h> #include <gdk/gdk.h>
#include <gtk/gtkx.h> #include <gtk/gtkx.h>
#include <libintl.h>
#include <libublsettings.h> #include <libublsettings.h>
#define _(String) gettext(String) #define _(String) gettext(String)

Loading…
Cancel
Save