From a3de24506a377fb60d2a1e85750aafb6d03d2fe2 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 20 Jul 2021 13:51:52 +0200 Subject: [PATCH] depend on proxmox 0.12.0, bump version to 0.6.1 Signed-off-by: Thomas Lamprecht --- Cargo.toml | 4 ++-- debian/changelog | 6 ++++++ debian/control | 8 ++++---- src/auth_state.rs | 3 ++- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b8edc533..fc839c21 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "proxmox-openid" -version = "0.6.0" +version = "0.6.1" authors = ["Dietmar Maurer "] edition = "2018" license = "AGPL-3" @@ -21,6 +21,6 @@ serde_json = "1.0" url = "2.1" http = "0.2" curl = { version = "0.4.33" } -proxmox = { version = "0.11.5", default-features = false } +proxmox = { version = "0.12.0", default-features = false } nix = "0.19.1" openidconnect = { version = "2.0", default-features = false, features = ["curl"] } diff --git a/debian/changelog b/debian/changelog index 025cdf8e..2e0baf4d 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +rust-proxmox-openid (0.6.1-1) unstable; urgency=medium + + * depend on proxmox 0.12.0 + + -- Proxmox Support Team Tue, 20 Jul 2021 13:19:23 +0200 + rust-proxmox-openid (0.6.0-2) unstable; urgency=medium * remove debug output diff --git a/debian/control b/debian/control index fb86702b..297a1bbf 100644 --- a/debian/control +++ b/debian/control @@ -11,7 +11,7 @@ Build-Depends: debhelper (>= 12), librust-http-0.2+default-dev , librust-nix-0.19+default-dev (>= 0.19.1-~~) , librust-openidconnect-2+curl-dev , - librust-proxmox-0.11-dev (>= 0.11.5-~~) , + librust-proxmox-0.12-dev , librust-serde-1+default-dev , librust-serde-1+derive-dev , librust-serde-json-1+default-dev , @@ -32,7 +32,7 @@ Depends: librust-http-0.2+default-dev, librust-nix-0.19+default-dev (>= 0.19.1-~~), librust-openidconnect-2+curl-dev, - librust-proxmox-0.11-dev (>= 0.11.5-~~), + librust-proxmox-0.12-dev, librust-serde-1+default-dev, librust-serde-1+derive-dev, librust-serde-json-1+default-dev, @@ -43,8 +43,8 @@ Provides: librust-proxmox-openid-0+default-dev (= ${binary:Version}), librust-proxmox-openid-0.6-dev (= ${binary:Version}), librust-proxmox-openid-0.6+default-dev (= ${binary:Version}), - librust-proxmox-openid-0.6.0-dev (= ${binary:Version}), - librust-proxmox-openid-0.6.0+default-dev (= ${binary:Version}) + librust-proxmox-openid-0.6.1-dev (= ${binary:Version}), + librust-proxmox-openid-0.6.1+default-dev (= ${binary:Version}) Description: Rust crate "proxmox-openid" - Rust source code This package contains the source for the Rust proxmox-openid crate, packaged by debcargo for use with cargo and dh-cargo. diff --git a/src/auth_state.rs b/src/auth_state.rs index acadaf9a..318931b1 100644 --- a/src/auth_state.rs +++ b/src/auth_state.rs @@ -27,7 +27,8 @@ fn load_auth_state_locked( let lock = open_file_locked( lock_path, std::time::Duration::new(10, 0), - true + true, + CreateOptions::new() )?; let mut path = state_dir.to_owned();