summaryrefslogtreecommitdiff
path: root/src/ostree/ot-builtin-fsck.c
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2015-11-05 13:28:37 +0100
committerGiuseppe Scrivano <gscrivan@redhat.com>2015-11-16 10:57:33 +0100
commit0aa836c20557f6360b3f82eb0d523916da9e8f63 (patch)
tree2df27a91ee112a4b213eb5a61ccaeafb870605a0 /src/ostree/ot-builtin-fsck.c
parenta19a112d9dda6d9bbcbfc4c8108063eded6bc38a (diff)
downloadostree-0aa836c20557f6360b3f82eb0d523916da9e8f63.tar.gz
prune: add --delete-commit
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'src/ostree/ot-builtin-fsck.c')
-rw-r--r--src/ostree/ot-builtin-fsck.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/ostree/ot-builtin-fsck.c b/src/ostree/ot-builtin-fsck.c
index d16ead84..b1926836 100644
--- a/src/ostree/ot-builtin-fsck.c
+++ b/src/ostree/ot-builtin-fsck.c
@@ -310,18 +310,8 @@ ostree_builtin_fsck (int argc, char **argv, GCancellable *cancellable, GError **
guint i;
if (tombstones->len)
{
- GError *temp_error = NULL;
- gboolean tombstone_commits = FALSE;
- GKeyFile *config = ostree_repo_get_config (repo);
- tombstone_commits = g_key_file_get_boolean (config, "core", "tombstone-commits", &temp_error);
- /* tombstone_commits is FALSE either if it is not found or it is really set to FALSE in the config file. */
- if (!tombstone_commits)
- {
- g_clear_error (&temp_error);
- g_key_file_set_boolean (config, "core", "tombstone-commits", TRUE);
- if (!ostree_repo_write_config (repo, config, error))
- goto out;
- }
+ if (!ot_enable_tombstone_commits (repo, error))
+ goto out;
}
for (i = 0; i < tombstones->len; i++)
{