| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
| |
This is a version of ostree_repo_traverse_commit_union that also
remembers where the objects came from, by recording the parent
relationships in a hashtable. This can be used to later find which
commits each object was from, which we want to use in fsck.
Closes: #1533
Approved by: cgwalters
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
SPDX License List is a list of (common) open source
licenses that can be referred to by a “short identifier”.
It has several advantages compared to the common "license header texts"
usually found in source files.
Some of the advantages:
* It is precise; there is no ambiguity due to variations in license header
text
* It is language neutral
* It is easy to machine process
* It is concise
* It is simple and can be used without much cost in interpreted
environments like java Script, etc.
* An SPDX license identifier is immutable.
* It provides simple guidance for developers who want to make sure the
license for their code is respected
See http://spdx.org for further reading.
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Closes: #1439
Approved by: cgwalters
|
|
|
|
|
|
|
|
| |
Not prep for anything, was just reading this code a bit while
working on rpm-ostree jigdo.
Closes: #1338
Approved by: jlebon
|
|
|
|
|
|
|
|
|
| |
We added a `.dir-locals.el` in commit: 9a77017d87b74c5e2895cdd64ad098018929403f
There's no need to have it per-file, with that people might think
to add other editors, which is the wrong direction.
Closes: #1206
Approved by: jlebon
|
|
|
|
|
|
|
|
|
| |
And "move semantics" via `g_steal_pointer()`. Just a minor code
cleanup I noticed when I was hunting for a leak, which ended up being
elsewhere.
Closes: #598
Approved by: jlebon
|
|
|
|
|
|
|
|
| |
ostree_object_name_serialize returns a floating ref, so we need
to sink it before putting in the hashtable.
Closes: #595
Approved by: cgwalters
|
|
|
|
|
| |
Closes: #594
Approved by: jlebon
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If we have a partial commit it is not an error for a dirmeta to be
missing (in fact, that is likely), so instead of returning a not-found
error from ostree_repo_traverse_commit() we ignore the error and
continue.
In particular, this means we don't stop early at the first
missing dirmeta, which previously caused ostree_repo_prune() to
thing the dirmetas after that to be unreached and thus purged.
Also, we remove the special casing in ostree_repo_prune() to
not report errors for commitpartial, because these should not
be reported anymore.
This fixes https://github.com/ostreedev/ostree/issues/541
Closes: #542
Approved by: cgwalters
|
|
|
|
|
|
|
| |
I noticed this using `OT_TEST_VALGRIND=1` on `test-basic.sh`.
Closes: #385
Approved by: jlebon
|
|
|
|
|
| |
Closes: #359
Approved by: cgwalters
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
It's a bit more verbose but...eh.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
|
|
|
|
|
| |
This is a more optimized version of the GFile * APIs, and is now used
internally by the previous ostree_repo_traverse().
|
|
|
|
| |
Otherwise, bindings try to erroneously unref the key/values as well.
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=732020
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=705973
|
|
|
|
| |
Still lots more docs to write and API to cleanup, but this is better.
|
|
|
|
|
| |
This required a fair bit of surgery because previously ostree.h
included otutil.h, but that's supposed to be a private library.
|
|
|
|
|
|
| |
It's less copy/paste, works everywhere, etc.
Also fix some missing #include "config.h".
|
|
This operates on the repo, it might as well be methods on it.
|