core: Support committing multiple tarballs in the same transaction

ostbuild will generate two artifacts: foo-runtime.tar.gz and
foo-devel.tar.gz in the general case.  When committing to the devel
tree, it'd be lame (i.e. slower and not atomic) to have to commit
twice.
This commit is contained in:
Colin Walters committed 2011-12-20 17:21:15 -05:00
1 parent d444ee917d
commit bdfde03b61
4 files changed
+93 -68

No files matched your search

+11 -11
View File
@@ -154,17 +154,17 @@ gboolean ostree_repo_commit_directory (OstreeRepo *self,
GCancellable *cancellable,
GError **error);
gboolean ostree_repo_commit_tarfile (OstreeRepo *self,
const char *branch,
const char *parent,
const char *subject,
const char *body,
GVariant *metadata,
GFile *base,
OstreeRepoCommitModifier *modifier,
GChecksum **out_commit,
GCancellable *cancellable,
GError **error);
gboolean ostree_repo_commit_tarfiles (OstreeRepo *self,
const char *branch,
const char *parent,
const char *subject,
const char *body,
GVariant *metadata,
GPtrArray *tarfiles,
OstreeRepoCommitModifier *modifier,
GChecksum **out_commit,
GCancellable *cancellable,
GError **error);
typedef enum {
OSTREE_REPO_CHECKOUT_MODE_NONE,