Skip to content

Commit 159f40c

Browse files
committed
schema: Add Ubuntu Pro FIPS ecosystem
This allows parsing the entirity of the current Ubuntu ecosystem from https://storage.googleapis.com/osv-vulnerabilities/Ubuntu/all.zip.
1 parent d26da39 commit 159f40c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/schema.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,11 +264,21 @@ impl<'de> Deserialize<'de> for Ecosystem {
264264
|v| {
265265
let parts: Vec<&str> = v.split(':').collect();
266266
match parts.as_slice() {
267+
[_, ver, "LTS"] => Ok(Ecosystem::Ubuntu {
268+
version: ver.to_string(),
269+
pro: true,
270+
lts: true,
271+
}),
267272
[ver, "LTS"] => Ok(Ecosystem::Ubuntu {
268273
version: ver.to_string(),
269274
pro: true,
270275
lts: true,
271276
}),
277+
[ver, "LTS", ..] => Ok(Ecosystem::Ubuntu {
278+
version: ver.to_string(),
279+
pro: true,
280+
lts: true,
281+
}),
272282
[ver] => Ok(Ecosystem::Ubuntu {
273283
version: ver.to_string(),
274284
pro: true,
@@ -292,6 +302,11 @@ impl<'de> Deserialize<'de> for Ecosystem {
292302
pro: false,
293303
lts: true,
294304
}),
305+
[ver, "LTS", ..] => Ok(Ecosystem::Ubuntu {
306+
version: ver.to_string(),
307+
pro: true,
308+
lts: true,
309+
}),
295310
[ver] => Ok(Ecosystem::Ubuntu {
296311
version: ver.to_string(),
297312
pro: false,

0 commit comments

Comments
 (0)