diff --git a/rust-bindings/rust/Makefile b/rust-bindings/rust/Makefile index 324c0a11..8c902fd9 100644 --- a/rust-bindings/rust/Makefile +++ b/rust-bindings/rust/Makefile @@ -1,7 +1,7 @@ GIR_REPO := https://github.com/gtk-rs/gir.git GIR_VERSION := 2d1ffab19eb5f9a2f0d7a294dbf07517dab4d989 -OSTREE_REPO := https://github.com/ostreedev/ostree.git -OSTREE_VERSION := v2020.7 +OSTREE_REPO := https://github.com/fkrull/ostree.git +OSTREE_VERSION := patch-v2020.7 RUSTDOC_STRIPPER_VERSION := 0.1.13 all: gir diff --git a/rust-bindings/rust/gir-files/OSTree-1.0.gir b/rust-bindings/rust/gir-files/OSTree-1.0.gir index f90fe38c..4dd5387c 100644 --- a/rust-bindings/rust/gir-files/OSTree-1.0.gir +++ b/rust-bindings/rust/gir-files/OSTree-1.0.gir @@ -9263,7 +9263,13 @@ signature engine provided, FALSE otherwise. line="1078">Signature engine used to check superblock - + success message diff --git a/rust-bindings/rust/src/auto/repo.rs b/rust-bindings/rust/src/auto/repo.rs index 3e62b8bc..5fff6359 100644 --- a/rust-bindings/rust/src/auto/repo.rs +++ b/rust-bindings/rust/src/auto/repo.rs @@ -795,11 +795,12 @@ impl Repo { } #[cfg(any(feature = "v2020_7", feature = "dox"))] - pub fn static_delta_verify_signature>(&self, delta_id: &str, sign: &P, out_success_message: &str) -> Result<(), glib::Error> { + pub fn static_delta_verify_signature>(&self, delta_id: &str, sign: &P) -> Result, glib::Error> { unsafe { + let mut out_success_message = ptr::null_mut(); let mut error = ptr::null_mut(); - let _ = ostree_sys::ostree_repo_static_delta_verify_signature(self.to_glib_none().0, delta_id.to_glib_none().0, sign.as_ref().to_glib_none().0, out_success_message.to_glib_none().0, &mut error); - if error.is_null() { Ok(()) } else { Err(from_glib_full(error)) } + let _ = ostree_sys::ostree_repo_static_delta_verify_signature(self.to_glib_none().0, delta_id.to_glib_none().0, sign.as_ref().to_glib_none().0, &mut out_success_message, &mut error); + if error.is_null() { Ok(from_glib_full(out_success_message)) } else { Err(from_glib_full(error)) } } } diff --git a/rust-bindings/rust/src/auto/versions.txt b/rust-bindings/rust/src/auto/versions.txt index 283ef13e..ca6fe281 100644 --- a/rust-bindings/rust/src/auto/versions.txt +++ b/rust-bindings/rust/src/auto/versions.txt @@ -1,2 +1,2 @@ Generated by gir (https://github.com/gtk-rs/gir @ 2d1ffab1) -from gir-files (https://github.com/gtk-rs/gir-files @ ???) +from gir-files (https://github.com/gtk-rs/gir-files @ 28a5895+) diff --git a/rust-bindings/rust/sys/src/auto/versions.txt b/rust-bindings/rust/sys/src/auto/versions.txt index 283ef13e..ca6fe281 100644 --- a/rust-bindings/rust/sys/src/auto/versions.txt +++ b/rust-bindings/rust/sys/src/auto/versions.txt @@ -1,2 +1,2 @@ Generated by gir (https://github.com/gtk-rs/gir @ 2d1ffab1) -from gir-files (https://github.com/gtk-rs/gir-files @ ???) +from gir-files (https://github.com/gtk-rs/gir-files @ 28a5895+)