Skip to content

Commit

Permalink
upgrade: Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
cgwalters committed Sep 12, 2023
1 parent 0a0c104 commit c06a626
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions rust/src/sysroot_upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ pub(crate) fn purge_refspec(repo: &crate::FFIOstreeRepo, imgref: &str) -> CxxRes
Ok(())
}

/// Check for an updated manifest for the given container image reference, and return a diff.
pub(crate) fn compare_local_to_remote_container(
repo: &crate::FFIOstreeRepo,
cancellable: &crate::FFIGCancellable,
Expand All @@ -199,15 +200,16 @@ pub(crate) fn compare_local_to_remote_container(
let imgref = &OstreeImageReference::try_from(imgref)?;
let r = Handle::current().block_on(async {
crate::utils::run_with_cancellable(
async { get_container_manifest_diff(repo, imgref).await },
async { impl_get_container_manifest_diff(repo, imgref).await },
&cancellable,
)
.await
})?;
Ok(Box::new(r))
}

pub async fn get_container_manifest_diff(
/// Implementation of fetching a container manifest diff.
async fn impl_get_container_manifest_diff(
repo: &ostree::Repo,
imgref: &OstreeImageReference,
) -> Result<ExportedManifestDiff> {
Expand Down

0 comments on commit c06a626

Please sign in to comment.