forked from Mirrors/flatpak-builder
Make sure we export files during install
is_data was never set to true, so we didn't run the exports during install.tingping/wmclass
parent
9c6d6242a9
commit
8f6e6c0dab
|
@ -2361,17 +2361,25 @@ xdg_app_dir_find_remote_ref (XdgAppDir *self,
|
|||
if (app_ref &&
|
||||
ostree_repo_resolve_rev (self->repo, app_ref_with_remote,
|
||||
FALSE, NULL, NULL))
|
||||
return g_steal_pointer (&app_ref);
|
||||
{
|
||||
if (is_app)
|
||||
*is_app = TRUE;
|
||||
return g_steal_pointer (&app_ref);
|
||||
}
|
||||
|
||||
if (runtime_ref &&
|
||||
ostree_repo_resolve_rev (self->repo, runtime_ref_with_remote,
|
||||
FALSE, NULL, NULL))
|
||||
return g_steal_pointer (&runtime_ref);
|
||||
{
|
||||
if (is_app)
|
||||
*is_app = FALSE;
|
||||
return g_steal_pointer (&runtime_ref);
|
||||
}
|
||||
|
||||
if (!ostree_repo_remote_fetch_summary (self->repo, remote,
|
||||
&summary_bytes, NULL,
|
||||
cancellable, error))
|
||||
return FALSE;
|
||||
return NULL;
|
||||
|
||||
if (summary_bytes == NULL)
|
||||
{
|
||||
|
@ -2384,10 +2392,18 @@ xdg_app_dir_find_remote_ref (XdgAppDir *self,
|
|||
refs = g_variant_get_child_value (summary, 0);
|
||||
|
||||
if (app_ref && xdg_app_variant_bsearch_str (refs, app_ref, &pos))
|
||||
return g_steal_pointer (&app_ref);
|
||||
{
|
||||
if (is_app)
|
||||
*is_app = TRUE;
|
||||
return g_steal_pointer (&app_ref);
|
||||
}
|
||||
|
||||
if (runtime_ref && xdg_app_variant_bsearch_str (refs, runtime_ref, &pos))
|
||||
return g_steal_pointer (&runtime_ref);
|
||||
{
|
||||
if (is_app)
|
||||
*is_app = TRUE;
|
||||
return g_steal_pointer (&runtime_ref);
|
||||
}
|
||||
|
||||
g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND,
|
||||
"Can't find %s %s in remote %s", name, opt_branch ? opt_branch : "master", remote);
|
||||
|
|
Loading…
Reference in New Issue