"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "app/flatpak-builtins-info.c" between
flatpak-1.8.2.tar.xz and flatpak-1.8.3.tar.xz

About: Flatpak is a Linux application sandboxing and distribution framework.

flatpak-builtins-info.c  (flatpak-1.8.2.tar.xz):flatpak-builtins-info.c  (flatpak-1.8.3.tar.xz)
skipping to change at line 148 skipping to change at line 148
dir = flatpak_find_installed_pref (pref, kinds, opt_arch, default_branch, dir = flatpak_find_installed_pref (pref, kinds, opt_arch, default_branch,
search_all, opt_user, opt_system, opt_insta llations, search_all, opt_user, opt_system, opt_insta llations,
&ref, cancellable, error); &ref, cancellable, error);
if (dir == NULL) if (dir == NULL)
return FALSE; return FALSE;
deploy_data = flatpak_dir_get_deploy_data (dir, ref, FLATPAK_DEPLOY_VERSION_CU RRENT, cancellable, error); deploy_data = flatpak_dir_get_deploy_data (dir, ref, FLATPAK_DEPLOY_VERSION_CU RRENT, cancellable, error);
if (deploy_data == NULL) if (deploy_data == NULL)
return FALSE; return FALSE;
deploy = flatpak_find_deploy_for_ref (ref, NULL, NULL, error); deploy = flatpak_dir_load_deployed (dir, ref, NULL, cancellable, error);
if (deploy == NULL) if (deploy == NULL)
return FALSE; return FALSE;
parts = g_strsplit (ref, "/", 0); parts = g_strsplit (ref, "/", 0);
commit = flatpak_deploy_data_get_commit (deploy_data); commit = flatpak_deploy_data_get_commit (deploy_data);
alt_id = flatpak_deploy_data_get_alt_id (deploy_data); alt_id = flatpak_deploy_data_get_alt_id (deploy_data);
origin = flatpak_deploy_data_get_origin (deploy_data); origin = flatpak_deploy_data_get_origin (deploy_data);
size = flatpak_deploy_data_get_installed_size (deploy_data); size = flatpak_deploy_data_get_installed_size (deploy_data);
formatted_size = g_format_size (size); formatted_size = g_format_size (size);
skipping to change at line 409 skipping to change at line 409
FLATPAK_METADATA_KEY_SDK, FLATPAK_METADATA_KEY_SDK,
NULL); NULL);
g_print ("%s", sdk ? sdk : "-"); g_print ("%s", sdk ? sdk : "-");
} }
if (!first) if (!first)
g_print ("\n"); g_print ("\n");
if (opt_show_metadata) if (opt_show_metadata)
{ {
g_autoptr(GFile) deploy_dir = NULL;
g_autoptr(GFile) file = NULL; g_autoptr(GFile) file = NULL;
g_autofree char *data = NULL; g_autofree char *data = NULL;
gsize data_size; gsize data_size;
deploy_dir = flatpak_dir_get_if_deployed (dir, ref, NULL, cancellable) ;
file = g_file_get_child (deploy_dir, "metadata"); file = g_file_get_child (deploy_dir, "metadata");
if (!g_file_load_contents (file, cancellable, &data, &data_size, NULL, error)) if (!g_file_load_contents (file, cancellable, &data, &data_size, NULL, error))
return FALSE; return FALSE;
g_print ("%s", data); g_print ("%s", data);
} }
if (opt_show_permissions || opt_file_access) if (opt_show_permissions || opt_file_access)
{ {
 End of changes. 3 change blocks. 
3 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)