Add FreeBSD 14.4

This commit is contained in:
Yorhel 2026-03-15 06:00:55 +01:00
parent 47b48c843c
commit 70e47e711b
2 changed files with 10 additions and 1 deletions

View file

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