Skip to content

Commit

Permalink
install: s/from/new/
Browse files Browse the repository at this point in the history
This is more standard naming.

Signed-off-by: Colin Walters <walters@verbum.org>
  • Loading branch information
cgwalters committed Jan 17, 2024
1 parent 909ab42 commit 99b8d8e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/src/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -393,16 +393,17 @@ impl SourceInfo {
if !skopeo_supports_containers_storage {
anyhow::bail!("This functionality requires at least skopeo v1.11 on the host");
}
Self::from(imageref, Some(digest), true)
Self::new(imageref, Some(digest), true)
}

#[context("Creating source info from a given imageref")]
pub(crate) fn from_imageref(imageref: &str) -> Result<Self> {
let imageref = ostree_container::ImageReference::try_from(imageref)?;
Self::from(imageref, None, false)
Self::new(imageref, None, false)
}

fn from(
/// Construct a new source information structure
fn new(
imageref: ostree_container::ImageReference,
digest: Option<String>,
in_host_mountns: bool,
Expand Down

0 comments on commit 99b8d8e

Please sign in to comment.