Skip to content

Commit

Permalink
Merge pull request #3040 from jlebon/pr/try-macro-drop-type
Browse files Browse the repository at this point in the history
src: Simplify CXX_TRY_VAL macro
  • Loading branch information
Luca Bruno authored Jul 30, 2021
2 parents 7eaf262 + 25a4188 commit 5ae5a8e
Show file tree
Hide file tree
Showing 18 changed files with 53 additions and 68 deletions.
4 changes: 2 additions & 2 deletions src/app/rpmostree-builtin-shlib-backend.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ rpmostree_builtin_shlib_backend (int argc,
const char *src = argv[2];
g_autoptr(DnfContext) ctx = dnf_context_new ();
auto varsubsts = rpmostree_dnfcontext_get_varsubsts (ctx);
auto rets = CXX_TRY_VAL(rust::String, varsubstitute (src, *varsubsts), error);
auto rets = CXX_TRY_VAL(varsubstitute (src, *varsubsts), error);
ret = g_variant_new_string (rets.c_str());
}
else if (g_str_equal (arg, "packagelist-from-commit"))
Expand All @@ -124,6 +124,6 @@ rpmostree_builtin_shlib_backend (int argc,
return glnx_throw (error, "unknown shlib-backend %s", arg);

rust::Slice<const uint8_t> dataslice{(guint8*)g_variant_get_data (ret), g_variant_get_size (ret)};
glnx_fd_close int ret_memfd = CXX_TRY_VAL (int, sealed_memfd("rpm-ostree-shlib-backend", dataslice), error);
glnx_fd_close int ret_memfd = CXX_TRY_VAL (sealed_memfd("rpm-ostree-shlib-backend", dataslice), error);
return send_memfd_result (ipc_sock, glnx_steal_fd (&ret_memfd), error);
}
2 changes: 1 addition & 1 deletion src/app/rpmostree-builtin-status.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1395,7 +1395,7 @@ rpmostree_ex_builtin_history (int argc,
/* initiate a history context, then iterate over each (boot time, deploy time), then print */

/* XXX: enhance with option for going in reverse (oldest first) */
auto history_ctx = CXX_TRY_VAL(rust::Box<rpmostreecxx::HistoryCtx>, history_ctx_new (), error);
auto history_ctx = CXX_TRY_VAL(history_ctx_new (), error);

/* XXX: use pager here */

Expand Down
2 changes: 1 addition & 1 deletion src/app/rpmostree-clientlib.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ rpmostree_sort_pkgs_strv (const char *const* pkgs,
for (const char *const* pkgiter = pkgs; pkgiter && *pkgiter; pkgiter++)
{
auto pkg = *pkgiter;
auto fds = CXX_TRY_VAL(rust::Vec<int>, client_handle_fd_argument(pkg, basearch), error);
auto fds = CXX_TRY_VAL(client_handle_fd_argument(pkg, basearch), error);
if (fds.size() > 0)
{
for (const auto & fd: fds)
Expand Down
21 changes: 8 additions & 13 deletions src/app/rpmostree-compose-builtin-tree.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -690,9 +690,8 @@ rpm_ostree_compose_context_new (const char *treefile_pathstr,
}

self->treefile_path = g_file_new_for_path (treefile_pathstr);
self->treefile_rs = CXX_TRY_VAL(rust::Box<rpmostreecxx::Treefile>,
treefile_new_compose(gs_file_get_path_cached (self->treefile_path),
basearch, self->workdir_dfd), error);
self->treefile_rs = CXX_TRY_VAL(treefile_new_compose(gs_file_get_path_cached (self->treefile_path),
basearch, self->workdir_dfd), error);
self->corectx = rpmostree_context_new_compose (self->cachedir_dfd, self->build_repo,
**self->treefile_rs);
/* In the legacy compose path, we don't want to use any of the core's selinux stuff,
Expand Down Expand Up @@ -891,7 +890,7 @@ impl_install_tree (RpmOstreeTreeComposeContext *self,
(void)g_variant_lookup (previous_metadata, OSTREE_COMMIT_META_KEY_VERSION, "s", &last_version);
}

next_version = CXX_TRY_VAL(rust::String, util_next_version (ver_prefix, ver_suffix ?: "", last_version ?: ""), error);
next_version = CXX_TRY_VAL(util_next_version (ver_prefix, ver_suffix ?: "", last_version ?: ""), error);
g_hash_table_insert (self->metadata, g_strdup (OSTREE_COMMIT_META_KEY_VERSION),
g_variant_ref_sink (g_variant_new_string (next_version.c_str())));
}
Expand Down Expand Up @@ -1198,7 +1197,7 @@ rpmostree_compose_builtin_install (int argc,

if (opt_print_only)
{
auto treefile = CXX_TRY_VAL(rust::Box<rpmostreecxx::Treefile>, treefile_new (treefile_path, basearch, -1), error);
auto treefile = CXX_TRY_VAL(treefile_new (treefile_path, basearch, -1), error);
treefile->prettyprint_json_stdout ();
return TRUE;
}
Expand Down Expand Up @@ -1286,8 +1285,7 @@ rpmostree_compose_builtin_postprocess (int argc,
{
if (!glnx_mkdtempat (AT_FDCWD, "/var/tmp/rpm-ostree.XXXXXX", 0700, &workdir_tmp, error))
return FALSE;
auto treefile_rs = CXX_TRY_VAL(rust::Box<rpmostreecxx::Treefile>,
treefile_new_compose(treefile_path, "", workdir_tmp.fd), error);
auto treefile_rs = CXX_TRY_VAL(treefile_new_compose(treefile_path, "", workdir_tmp.fd), error);
auto serialized = treefile_rs->get_json_string();
treefile_parser = json_parser_new ();
if (!json_parser_load_from_data (treefile_parser, serialized.c_str(), -1, error))
Expand Down Expand Up @@ -1387,8 +1385,7 @@ rpmostree_compose_builtin_tree (int argc,

if (opt_print_only)
{
auto treefile = CXX_TRY_VAL(rust::Box<rpmostreecxx::Treefile>,
treefile_new (treefile_path, basearch, -1), error);
auto treefile = CXX_TRY_VAL(treefile_new (treefile_path, basearch, -1), error);
treefile->prettyprint_json_stdout ();
return TRUE;
}
Expand Down Expand Up @@ -1472,8 +1469,7 @@ rpmostree_compose_builtin_extensions (int argc,
const char *extensions_path = argv[2];

auto basearch = rpmostreecxx::get_rpm_basearch ();
auto src_treefile = CXX_TRY_VAL(rust::Box<rpmostreecxx::Treefile>,
treefile_new_compose(treefile_path, basearch, -1), error);
auto src_treefile = CXX_TRY_VAL(treefile_new_compose(treefile_path, basearch, -1), error);

g_autoptr(OstreeRepo) repo = ostree_repo_open_at (AT_FDCWD, opt_repo, cancellable, error);
if (!repo)
Expand Down Expand Up @@ -1529,8 +1525,7 @@ rpmostree_compose_builtin_extensions (int argc,
packages_mapping->push_back(rpmostreecxx::StringMapping{name, evr});
}

auto extensions = CXX_TRY_VAL(rust::Box<rpmostreecxx::Extensions>,
extensions_load (extensions_path, basearch, *packages_mapping), error);
auto extensions = CXX_TRY_VAL(extensions_load (extensions_path, basearch, *packages_mapping), error);

// This treefile basically tells the core to download the extension packages
// from the repos, and that's it.
Expand Down
5 changes: 2 additions & 3 deletions src/app/rpmostree-db-builtin-diff.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ print_diff (OstreeRepo *repo,

if (opt_advisories)
{
auto diff = CXX_TRY_VAL(GVariant*, calculate_advisories_diff(*repo, from_checksum, to_checksum), error);
auto diff = CXX_TRY_VAL(calculate_advisories_diff(*repo, from_checksum, to_checksum), error);
g_print ("\n");
rpmostree_print_advisories (diff, TRUE, 0);
}
Expand Down Expand Up @@ -272,8 +272,7 @@ rpmostree_db_builtin_diff (int argc, char **argv,
FALSE, &diffv, cancellable, error))
return FALSE;
g_variant_builder_add (&builder, "{sv}", "pkgdiff", diffv);
auto adv_diff = CXX_TRY_VAL(GVariant*,
calculate_advisories_diff(*repo, from_checksum, to_checksum), error);
auto adv_diff = CXX_TRY_VAL(calculate_advisories_diff(*repo, from_checksum, to_checksum), error);
g_variant_builder_add (&builder, "{sv}", "advisories", adv_diff);
g_autoptr(GVariant) metadata = g_variant_builder_end (&builder);

Expand Down
4 changes: 2 additions & 2 deletions src/daemon/rpmostree-sysroot-core.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ generate_pkgcache_refs (OstreeSysroot *sysroot,
GHashTable *local_replace = rpmostree_origin_get_overrides_local_replace (origin);
GLNX_HASH_TABLE_FOREACH (local_replace, const char*, nevra)
{
auto cachebranch = CXX_TRY_VAL(rust::String, nevra_to_cache_branch (std::string(nevra)), error);
auto cachebranch = CXX_TRY_VAL(nevra_to_cache_branch (std::string(nevra)), error);
g_hash_table_add (referenced_pkgs, g_strdup (cachebranch.c_str()));
}
}
Expand Down Expand Up @@ -413,7 +413,7 @@ rpmostree_syscore_write_deployment (OstreeSysroot *sysroot,
OstreeDeployment *booted = ostree_sysroot_get_booted_deployment (sysroot);
if (booted)
{
auto is_live = CXX_TRY_VAL(bool, has_live_apply_state(*sysroot, *booted), error);
auto is_live = CXX_TRY_VAL(has_live_apply_state(*sysroot, *booted), error);
if (is_live)
flags = static_cast<OstreeSysrootSimpleWriteDeploymentFlags>(flags | OSTREE_SYSROOT_SIMPLE_WRITE_DEPLOYMENT_FLAGS_RETAIN_ROLLBACK);
}
Expand Down
14 changes: 6 additions & 8 deletions src/daemon/rpmostree-sysroot-upgrader.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ rpmostree_sysroot_upgrader_pull_base (RpmOstreeSysrootUpgrader *self,
if (cur_digest)
{
rpmostree_output_message ("Pulling manifest: %s", refspec);
auto new_digest = CXX_TRY_VAL(rust::String, fetch_digest(std::string(refspec)), error);
auto new_digest = CXX_TRY_VAL(fetch_digest(std::string(refspec)), error);
if (strcmp (new_digest.c_str(), cur_digest) == 0)
{
/* No new digest. */
Expand All @@ -466,7 +466,7 @@ rpmostree_sysroot_upgrader_pull_base (RpmOstreeSysrootUpgrader *self,
}

rpmostree_output_message ("Pulling: %s", refspec);
auto import = CXX_TRY_VAL(rust::Box<rpmostreecxx::ContainerImport>, import_container(*self->sysroot, std::string(refspec)), error);
auto import = CXX_TRY_VAL(import_container(*self->sysroot, std::string(refspec)), error);

rpmostree_origin_set_container_image_reference_digest (self->original_origin, import->image_digest.c_str());
new_base_rev = strdup (import->ostree_commit.c_str());
Expand Down Expand Up @@ -617,15 +617,13 @@ try_load_base_rsack_from_pending (RpmOstreeSysrootUpgrader *self,
GCancellable *cancellable,
GError **error)
{
auto is_live = CXX_TRY_VAL(bool,
has_live_apply_state(*self->sysroot, *self->origin_merge_deployment), error);
auto is_live = CXX_TRY_VAL(has_live_apply_state(*self->sysroot, *self->origin_merge_deployment), error);
/* livefs invalidates the deployment */
if (is_live)
return TRUE;

auto repo = ostree_sysroot_repo(self->sysroot);
auto layeredmeta = CXX_TRY_VAL(rpmostreecxx::DeploymentLayeredMeta,
deployment_layeredmeta_load(*repo, *self->origin_merge_deployment), error);
auto layeredmeta = CXX_TRY_VAL(deployment_layeredmeta_load(*repo, *self->origin_merge_deployment), error);
/* older client layers have a bug blocking us from using their base rpmdb:
* https://github.com/projectatomic/rpm-ostree/pull/1560 */
if (layeredmeta.is_layered && layeredmeta.clientlayer_version < 4)
Expand Down Expand Up @@ -962,7 +960,7 @@ prep_local_assembly (RpmOstreeSysrootUpgrader *self,

{
g_autoptr(GKeyFile) computed_origin_kf = rpmostree_origin_dup_keyfile (self->computed_origin);
self->treefile = CXX_TRY_VAL(rust::Box<::rpmostreecxx::Treefile>, origin_to_treefile (*computed_origin_kf), error);
self->treefile = CXX_TRY_VAL(origin_to_treefile (*computed_origin_kf), error);
}
rpmostree_context_set_treefile (self->ctx, **self->treefile);

Expand Down Expand Up @@ -1411,7 +1409,7 @@ rpmostree_sysroot_upgrader_deploy (RpmOstreeSysrootUpgrader *self,
etc_files.push_back(std::string(key));
}
try {
fd = CXX_TRY_VAL(int, initramfs_overlay_generate (etc_files, *cancellable), error);
fd = CXX_TRY_VAL(initramfs_overlay_generate (etc_files, *cancellable), error);
} catch (std::exception& e) {
util::rethrow_prefixed(e, "Generating initramfs overlay");
}
Expand Down
4 changes: 2 additions & 2 deletions src/daemon/rpmostreed-deployment-utils.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ rpmostreed_deployment_get_for_id (OstreeSysroot *sysroot,
for (guint i = 0; i < deployments->len; i++)
{
auto deployment = static_cast<OstreeDeployment*>(deployments->pdata[i]);
auto id = CXX_TRY_VAL(rust::String, deployment_generate_id(*deployment), error);
auto id = CXX_TRY_VAL(deployment_generate_id(*deployment), error);
if (g_strcmp0 (deploy_id, id.c_str()) == 0)
{
*out_deployment = (OstreeDeployment*)g_object_ref (deployment);
Expand Down Expand Up @@ -920,7 +920,7 @@ rpmostreed_update_generate_variant (OstreeDeployment *booted_deployment,

if (staged_deployment)
{
auto id = CXX_TRY_VAL(rust::String, deployment_generate_id (*staged_deployment), error);
auto id = CXX_TRY_VAL(deployment_generate_id (*staged_deployment), error);
g_variant_dict_insert (&dict, "deployment", "s", id.c_str());
}

Expand Down
2 changes: 1 addition & 1 deletion src/daemon/rpmostreed-os.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1810,7 +1810,7 @@ rpmostreed_os_load_internals (RpmostreedOS *self, GError **error)
booted_id, ot_repo, TRUE, &booted_variant, error))
return FALSE;
g_variant_ref_sink (booted_variant);
auto bootedid_v = CXX_TRY_VAL(rust::String, deployment_generate_id(*booted_deployment), error);
auto bootedid_v = CXX_TRY_VAL(deployment_generate_id(*booted_deployment), error);
booted_id = g_strdup(bootedid_v.c_str());
}
else
Expand Down
2 changes: 1 addition & 1 deletion src/daemon/rpmostreed-sysroot.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ sysroot_populate_deployments_unlocked (RpmostreedSysroot *self,
const gchar *os = ostree_deployment_get_osname (booted);
g_autofree gchar *path = rpmostreed_generate_object_path (BASE_DBUS_PATH, os, NULL);
rpmostree_sysroot_set_booted (RPMOSTREE_SYSROOT (self), path);
auto bootedid_v = CXX_TRY_VAL(rust::String, deployment_generate_id(*booted), error);
auto bootedid_v = CXX_TRY_VAL(deployment_generate_id(*booted), error);
booted_id = g_strdup(bootedid_v.c_str());
}
else
Expand Down
5 changes: 2 additions & 3 deletions src/daemon/rpmostreed-transaction-types.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1442,7 +1442,7 @@ deploy_transaction_execute (RpmostreedTransaction *transaction,
OstreeDeployment *deployment =
rpmostree_sysroot_upgrader_get_merge_deployment (upgrader);

auto is_live = CXX_TRY_VAL(bool, has_live_apply_state(*sysroot, *deployment), error);
auto is_live = CXX_TRY_VAL(has_live_apply_state(*sysroot, *deployment), error);
if (is_live)
changed = TRUE;
}
Expand Down Expand Up @@ -2674,8 +2674,7 @@ finalize_deployment_transaction_execute (RpmostreedTransaction *transaction,
if (!g_str_equal (ostree_deployment_get_osname (default_deployment), self->osname))
return glnx_throw (error, "Staged deployment is not for osname '%s'", self->osname);

auto layeredmeta = CXX_TRY_VAL(rpmostreecxx::DeploymentLayeredMeta,
deployment_layeredmeta_load(*repo, *default_deployment), error);
auto layeredmeta = CXX_TRY_VAL(deployment_layeredmeta_load(*repo, *default_deployment), error);
const char *checksum = layeredmeta.base_commit.c_str();

auto expected_checksum =
Expand Down
18 changes: 8 additions & 10 deletions src/libpriv/rpmostree-core.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ rpmostree_pkgcache_find_pkg_header (OstreeRepo *pkgcache,
GCancellable *cancellable,
GError **error)
{
auto cachebranch = CXX_TRY_VAL(rust::String, nevra_to_cache_branch (nevra), error);
auto cachebranch = CXX_TRY_VAL(nevra_to_cache_branch (nevra), error);

if (expected_sha256 != NULL)
{
Expand Down Expand Up @@ -1206,7 +1206,7 @@ find_pkg_in_ostree (RpmOstreeContext *self,
const char *reponame = dnf_package_get_reponame (pkg);
if (g_strcmp0 (reponame, HY_CMDLINE_REPO_NAME) != 0)
{
auto expected_chksum_repr = CXX_TRY_VAL(rust::String, get_repodata_chksum_repr(*pkg), error);
auto expected_chksum_repr = CXX_TRY_VAL(get_repodata_chksum_repr(*pkg), error);

gboolean same_pkg_chksum = FALSE;
if (!commit_has_matching_repodata_chksum_repr (commit,
Expand Down Expand Up @@ -1673,7 +1673,7 @@ find_locked_packages (RpmOstreeContext *self,
}
else
{
auto repodata_chksum = CXX_TRY_VAL(rust::String, get_repodata_chksum_repr(*match), error);
auto repodata_chksum = CXX_TRY_VAL(get_repodata_chksum_repr(*match), error);
if (pkg.digest != repodata_chksum) /* we're comparing two rust::String here */
n_checksum_mismatches++;
else
Expand Down Expand Up @@ -2049,7 +2049,7 @@ rpmostree_context_set_lockfile (RpmOstreeContext *self,
rust::Vec<rust::String> rs_lockfiles;
for (char **it = lockfiles; it && *it; it++)
rs_lockfiles.push_back(std::string(*it));
self->lockfile = CXX_TRY_VAL(rust::Box<rpmostreecxx::LockfileConfig>, lockfile_read(rs_lockfiles), error);
self->lockfile = CXX_TRY_VAL(lockfile_read(rs_lockfiles), error);
self->lockfile_strict = strict;
return TRUE;
}
Expand Down Expand Up @@ -2133,7 +2133,7 @@ rpmostree_dnf_add_checksum_goal (GChecksum *checksum,
}
}

auto chksum_repr = CXX_TRY_VAL(rust::String, get_repodata_chksum_repr(*pkg), error);
auto chksum_repr = CXX_TRY_VAL(get_repodata_chksum_repr(*pkg), error);
g_checksum_update (checksum, (guint8*)chksum_repr.data(), chksum_repr.size());
}

Expand Down Expand Up @@ -4101,22 +4101,20 @@ rpmostree_context_assemble (RpmOstreeContext *self,
return FALSE;
CXX_TRY(rootfs_prepare_links(tmprootfs_dfd), error);

auto etc_guard = CXX_TRY_VAL(rust::Box<rpmostreecxx::TempEtcGuard>,
prepare_tempetc_guard (tmprootfs_dfd), error);
auto etc_guard = CXX_TRY_VAL(prepare_tempetc_guard (tmprootfs_dfd), error);

/* NB: we're not running scripts right now for removals, so this is only for overlays and
* replacements */
if (overlays->len > 0 || overrides_replace->len > 0)
{
gboolean have_passwd;

auto fs_prep = CXX_TRY_VAL(rust::Box<rpmostreecxx::FilesystemScriptPrep>,
prepare_filesystem_script_prep (tmprootfs_dfd), error);
auto fs_prep = CXX_TRY_VAL(prepare_filesystem_script_prep (tmprootfs_dfd), error);

auto passwd_entries = rpmostreecxx::new_passwd_entries();

std::string passwd_dir(self->passwd_dir ?: "");
have_passwd = CXX_TRY_VAL(bool, prepare_rpm_layering (tmprootfs_dfd, passwd_dir), error);
have_passwd = CXX_TRY_VAL(prepare_rpm_layering (tmprootfs_dfd, passwd_dir), error);

/* Necessary for unified core to work with semanage calls in %post, like container-selinux */
if (!rpmostree_rootfs_fixup_selinux_store_root (tmprootfs_dfd, cancellable, error))
Expand Down
2 changes: 1 addition & 1 deletion src/libpriv/rpmostree-importer.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ build_metadata_variant (RpmOstreeImporter *self,

/* include a checksum of the RPM as a whole; the actual algo used depends
* on how the repodata was created, so just keep a repr */
auto chksum_repr = CXX_TRY_VAL(rust::String, get_repodata_chksum_repr(*self->pkg), error);
auto chksum_repr = CXX_TRY_VAL(get_repodata_chksum_repr(*self->pkg), error);
g_variant_builder_add (&metadata_builder, "{sv}",
"rpmostree.repodata_checksum",
g_variant_new_string (chksum_repr.c_str()));
Expand Down
7 changes: 3 additions & 4 deletions src/libpriv/rpmostree-kernel.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -516,10 +516,9 @@ rpmostree_run_dracut (int rootfs_dfd,
* today. Though maybe in the future we should add it, but
* in the end we want to use systemd-sysusers of course.
**/
auto etc_guard = CXX_TRY_VAL(rust::Box<rpmostreecxx::TempEtcGuard>,
prepare_tempetc_guard (rootfs_dfd), error);
auto etc_guard = CXX_TRY_VAL(prepare_tempetc_guard (rootfs_dfd), error);

gboolean have_passwd = CXX_TRY_VAL(bool, prepare_rpm_layering (rootfs_dfd, ""), error);
gboolean have_passwd = CXX_TRY_VAL(prepare_rpm_layering (rootfs_dfd, ""), error);

/* Note rebuild_from_initramfs now is only used as a fallback in the client-side regen
* path when we can't fetch the canonical initramfs args to use. */
Expand Down Expand Up @@ -566,7 +565,7 @@ rpmostree_run_dracut (int rootfs_dfd,
&tmpf, error))
return FALSE;

auto bwrap = CXX_TRY_VAL(rust::Box<rpmostreecxx::Bubblewrap>, bubblewrap_new(rootfs_dfd), error);
auto bwrap = CXX_TRY_VAL(bubblewrap_new(rootfs_dfd), error);
if (use_root_etc)
{
bwrap->bind_read("/etc", "/etc");
Expand Down
2 changes: 1 addition & 1 deletion src/libpriv/rpmostree-postprocess.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ rpmostree_compose_commit (int rootfs_fd,
if (devino_cache)
ostree_repo_commit_modifier_set_devino_cache (commit_modifier, devino_cache);

auto n_bytes = CXX_TRY_VAL(uint64_t, directory_size(rootfs_fd, *cancellable), error);
auto n_bytes = CXX_TRY_VAL(directory_size(rootfs_fd, *cancellable), error);

tdata.n_bytes = n_bytes;
tdata.repo = repo;
Expand Down
Loading

0 comments on commit 5ae5a8e

Please sign in to comment.