fix missing spreed routes
All checks were successful
CI / build (push) Successful in 47s
CI / checks (push) Successful in 1m0s
CI / build-nixpkgs (push) Successful in 40s

This commit is contained in:
Robin Appelman 2025-08-23 23:36:03 +02:00
commit 4600c8fb3c
2 changed files with 7 additions and 5 deletions

View file

@ -227,7 +227,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "778e2ac28f6c47af28e4907f13ffd1e1ddbd400980a9abd7c8df189bf578a5ad" checksum = "778e2ac28f6c47af28e4907f13ffd1e1ddbd400980a9abd7c8df189bf578a5ad"
dependencies = [ dependencies = [
"libc", "libc",
"windows-sys 0.60.2", "windows-sys 0.52.0",
] ]
[[package]] [[package]]
@ -447,15 +447,16 @@ dependencies = [
[[package]] [[package]]
name = "nextcloud-route-extractor" name = "nextcloud-route-extractor"
version = "0.1.1" version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "28b663d89bb4b09895b97a99ffc4df7e93f0767a6f0665a4b923bc2ec0926e6b" checksum = "5982bbe89c6547b43cb412a331e3ffaadcd065e745cbaae8760bab1b95ffe069"
dependencies = [ dependencies = [
"clap", "clap",
"glob", "glob",
"main_error", "main_error",
"miette", "miette",
"php-literal-parser", "php-literal-parser",
"regex",
"serde", "serde",
"serde_json", "serde_json",
"streaming-iterator", "streaming-iterator",
@ -639,7 +640,7 @@ dependencies = [
"errno", "errno",
"libc", "libc",
"linux-raw-sys", "linux-raw-sys",
"windows-sys 0.60.2", "windows-sys 0.52.0",
] ]
[[package]] [[package]]

View file

@ -32,7 +32,8 @@ fn extract_routes<W: Write>(out: &mut W, path: &str) {
let app = match get_appinfo(path.as_ref()) { let app = match get_appinfo(path.as_ref()) {
Ok(info) => info.id().clone(), Ok(info) => info.id().clone(),
Err(nextcloud_appinfo::error::Error::InfoXmlMissing) => "core".into(), Err(nextcloud_appinfo::error::Error::InfoXmlMissing) => "core".into(),
Err(_) => { Err(e) => {
eprintln!("Error getting routes for {path}: {e:#}");
return; return;
} }
}; };