Mathnerd314
4cb77c51db
core: Use OSTREE_SHA256_STRING_LEN instead of 64
...
Closes : #359
Approved by: cgwalters
2016-06-22 16:10:01 +00:00
Alexander Larsson
d368624798
Build on older versions of glib
...
Various places need to include libglnx.h for the autoptr backport
fallbacks to be there before ostree-autocleanups.h is included.
This fixes the build on centos7·
Closes : #309
Approved by: giuseppe
2016-05-25 14:01:39 +00:00
Dan Nicholson
750e2cbf33
core: Add debug messages for traversing
...
If you have a repo where a needed object has been inadvertantly removed,
all you'll get is a "No such metadata object" error with no clue about
where it was referenced from.
Add some debug messages to provide clues about which objects are being
traversed and found.
https://bugzilla.gnome.org/show_bug.cgi?id=764006
Closes : #224
Approved by: cgwalters
2016-03-26 13:50:16 +00:00
Dan Nicholson
7524e904b9
traverse: Require variant when traversing dirtree
...
The dirtree object is required for traversing, so don't use the
load_variant_if_exists() function. This will return a
G_IO_ERROR_NOT_FOUND to the caller rather than trying to ref a NULL
variant in ostree_repo_commit_traverse_iter_init_dirtree() if the object
is missing.
https://bugzilla.gnome.org/show_bug.cgi?id=764091
2016-03-23 15:36:04 -04:00
Colin Walters
c58ad36840
libglnx porting: gs_transfer_out_value -> g_steal_pointer
...
It's a bit more verbose but...eh.
2016-03-18 12:08:19 -04:00
Matthew Barnes
4ef0280941
Remove unnecessary #include "libgsystem.h"
2015-05-06 22:07:11 -04:00
Matthew Barnes
c2c322efa9
Use g_autoptr(GVariant) instead of gs_unref_variant
2015-05-06 22:07:10 -04:00
Matthew Barnes
196d983af9
Use g_autoptr(GHashTable) instead of gs_unref_hashtable
2015-05-06 22:07:10 -04:00
Matthew Barnes
7a62d64968
Use g_autofree instead of gs_free
2015-05-06 21:50:17 -04:00
Giuseppe Scrivano
50cd3e971a
ostree-repo-traverse.c: Fix documentation parameter name
...
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2015-02-23 16:41:42 -05:00
Colin Walters
0f74ed62b7
repo: Add a new iterator traversal API for commits
...
This is a more optimized version of the GFile * APIs, and is now used
internally by the previous ostree_repo_traverse().
2015-02-16 10:10:35 -05:00
Colin Walters
28e5e6f27f
traverse: Fix transfer on hash table
...
Otherwise, bindings try to erroneously unref the key/values as well.
2015-01-21 11:59:32 -05:00
Colin Walters
d7067975e7
[staticanalysis]: Fix two uses of uninitialized variables
...
https://bugzilla.gnome.org/show_bug.cgi?id=732020
2014-06-21 18:08:49 -04:00
Colin Walters
2708124190
repo: Tweak traversal API
...
It's convenient for bindings if we have a version that doesn't mutate
the hash table, because they pass temporary hash tables as input.
2013-10-09 12:05:56 -04:00
Tobias Hunger
ed56908ccb
Fix warnings about unused variables
2013-08-30 14:23:45 -04:00
Stef Walter
5efb8e86e9
Add ostree_commit_get_parent() to get parent from variant
...
https://bugzilla.gnome.org/show_bug.cgi?id=705973
2013-08-15 06:52:53 +02:00
Colin Walters
7c5c3f2af8
core: Fix all introspection warnings
...
Still lots more docs to write and API to cleanup, but this is better.
2013-07-27 10:13:30 -04:00
Colin Walters
a5d43bb959
Install a shared library
...
This required a fair bit of surgery because previously ostree.h
included otutil.h, but that's supposed to be a private library.
2013-07-26 19:25:07 -04:00
Colin Walters
124416d832
Use AC_USE_SYSTEM_EXTENSIONS instead of #define _GNU_SOURCE
...
It's less copy/paste, works everywhere, etc.
Also fix some missing #include "config.h".
2013-07-10 13:25:35 -04:00
Colin Walters
2aa0251b1b
libostree: Rename ostree-traverse.h into OstreeRepo namespace
...
This operates on the repo, it might as well be methods on it.
2013-07-09 19:59:39 -04:00