[ostree] core: Fix g_file_get_uri/get_parse_name for non-root ostree files
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] core: Fix g_file_get_uri/get_parse_name for non-root ostree files
- Date: Wed, 18 Jun 2014 22:26:05 +0000 (UTC)
commit d4d4cbda7afd99d69e2d18e4edb82053f06cdffc
Author: James Antill <james and org>
Date: Wed Jun 18 02:57:19 2014 -0400
core: Fix g_file_get_uri/get_parse_name for non-root ostree files
src/libostree/ostree-repo-file.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/libostree/ostree-repo-file.c b/src/libostree/ostree-repo-file.c
index 4985709..454b523 100644
--- a/src/libostree/ostree-repo-file.c
+++ b/src/libostree/ostree-repo-file.c
@@ -495,12 +495,13 @@ ostree_repo_file_get_uri (GFile *file)
const char *path;
char *uri_path;
char *ret;
+ OstreeRepoFile *root = ostree_repo_file_get_root (self);
path = gs_file_get_path_cached (file);
uri_path = g_filename_to_uri (path, NULL, NULL);
g_assert (g_str_has_prefix (uri_path, "file://"));
ret = g_strconcat ("ostree://",
- self->tree_contents_checksum, "/", self->tree_metadata_checksum,
+ root->tree_contents_checksum, "/", root->tree_metadata_checksum,
uri_path+strlen("file://"),
NULL);
g_free (uri_path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]