Skip to content

Commit 0589cae

Browse files
committed
Fix: rpm exception handling
In a later patch all rpm package versions are normalized and separators are replaced with a single '.'. A exception, when we do not want to compare packages, is when a package contained '_fips'. The underscore is now replaced by a '.'. So just adjusting this separator.
1 parent da68de8 commit 0589cae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/src/notus/packages/rpm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ pub struct Rpm {
7676
module: (String, String),
7777
}
7878

79-
static EXCEPTIONS: [&str; 2] = ["_fips", ".ksplice"];
79+
static EXCEPTIONS: [&str; 2] = [".fips", ".ksplice"];
8080

8181
fn find_any_exception(name: &str) -> String {
8282
for exception in EXCEPTIONS.iter() {

0 commit comments

Comments
 (0)