Add FreeBSD 14.3

This commit is contained in:
Yorhel 2025-06-11 15:56:31 +02:00
parent 1ee9474826
commit d6b515d941
2 changed files with 11 additions and 2 deletions

View file

@ -20,8 +20,10 @@ fn getpkgsite(mut ent: Option<ArchiveEntry>) -> Result<ArchiveEntry> {
pub fn sync<T: postgres::GenericClient>(pg: &mut T, sys: i32, mirror: &str) -> Result<()> {
let path = format!("{}packagesite.txz", mirror);
let mut rd = open::Path{path: &path, cache: true, canbelocal: false}.open()?;
let pathxz = format!("{}packagesite.txz", mirror);
let pathzst = format!("{}packagesite.tzst", mirror);
let mut rd = open::Path{path: &pathxz, cache: true, canbelocal: false}.open()
.or_else(|_| open::Path{path: &pathzst, cache: true, canbelocal: false}.open())?;
let ent = Archive::open_archive(&mut rd)?;
let brd = BufReader::new(getpkgsite(ent)?);