Skip to content

Commit

Permalink
Bump Fedora version used in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dralley committed May 21, 2024
1 parent a730b98 commit 8dfa9b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/rpm/package.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use std::{
fs, io, io::Read,
fs, io,
path::{Path, PathBuf},
str::FromStr,
};
Expand Down Expand Up @@ -197,6 +197,7 @@ impl Package {
"signature_header(header and content)",
signature_header_and_content,
);
use io::Read;
let header_and_content_cursor =
io::Cursor::new(&header_bytes).chain(io::Cursor::new(&self.content));
verifier.verify(header_and_content_cursor, signature_header_and_content)?;
Expand Down
4 changes: 2 additions & 2 deletions tests/compat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ mod pgp {
let rpm_sig_check = format!("rpm -vv --checksig {} 2>&1;", path.as_ref().display());
// TODO: check signatures on all distros?
[
("fedora:38", &rpm_sig_check),
("fedora:38", &dnf_cmd),
("fedora:40", &rpm_sig_check),
("fedora:40", &dnf_cmd),
("centos:stream9", &dnf_cmd),
("centos:stream8", &dnf_cmd),
]
Expand Down

0 comments on commit 8dfa9b0

Please sign in to comment.