bin/commit: Fix build failure when libarchive is not used

A `"}"` at line 641 is missing when `HAVE_LIBARCHIVE` is not defined
(even though probably few will use ostree without libarchive).

Closes: #1181
Approved by: jlebon
This commit is contained in:
yceh 2017-09-18 13:10:52 +00:00 committed by Atomic Bot
parent 2f22e5b359
commit b39a61b493
1 changed files with 4 additions and 4 deletions

View File

@ -631,12 +631,12 @@ ostree_builtin_commit (int argc, char **argv, GCancellable *cancellable, GError
if (!ostree_repo_import_archive_to_mtree (repo, &opts, archive, mtree, if (!ostree_repo_import_archive_to_mtree (repo, &opts, archive, mtree,
modifier, cancellable, error)) modifier, cancellable, error))
goto out; goto out;
}
#else #else
g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED, g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
"This version of ostree is not compiled with libarchive support"); "This version of ostree is not compiled with libarchive support");
return FALSE; goto out;
#endif #endif
}
} }
else if (strcmp (tree_type, "ref") == 0) else if (strcmp (tree_type, "ref") == 0)
{ {