Skip to content

Commit

Permalink
lib: Bump to ostree-ext 0.12
Browse files Browse the repository at this point in the history
Just keeping up with things.

Signed-off-by: Colin Walters <[email protected]>
  • Loading branch information
cgwalters committed Sep 11, 2023
1 parent d7309b6 commit 2d1e7e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ rust-version = "1.64.0"
[dependencies]
anyhow = "1.0"
camino = { version = "1.0.4", features = ["serde1"] }
ostree-ext = "0.11.5"
ostree-ext = "0.12"
clap = { version= "4.2", features = ["derive"] }
clap_mangen = { version = "0.2", optional = true }
cap-std-ext = "2"
cap-std-ext = "3"
hex = "^0.4"
fn-error-context = "0.2.0"
gvariant = "0.4.0"
Expand Down
3 changes: 2 additions & 1 deletion lib/src/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ mod baseline;

use std::io::BufWriter;
use std::io::Write;
use std::os::fd::AsFd;
use std::str::FromStr;
use std::sync::Arc;

Expand Down Expand Up @@ -311,7 +312,7 @@ impl SourceInfo {
.quiet()
.read()?;
let root = cap_std::fs::Dir::open_ambient_dir("/", cap_std::ambient_authority())?;
let repo = ostree::Repo::open_at_dir(&root, "ostree/repo")?;
let repo = ostree::Repo::open_at_dir(root.as_fd(), "ostree/repo")?;
let root = repo
.read_commit(commit.trim(), cancellable)
.context("Reading commit")?
Expand Down

0 comments on commit 2d1e7e1

Please sign in to comment.