misterdownloadmanager: The ultimate open-source, clean-room download manager written from scratch in pure Rust for Windows, Mac, and Linux
Rust bittorrent-clientdebriddownload-acceleratordownload-managerdownloadmanagereguifile-downloadergallery-dlidmidm-alternativeinternet-download-managerm3u8-downloadermagnetplaylist-downloaderreal-debridrusttorrent-clientvideo-downloaderyoutube-downloaderyt-dlp
Test: a passed-over gallery-dl, on a machine that has its own (#648)
Ahmed Nefzaouia59a2e2cb89c
diff --git a/crates/tools/src/gallery.rs b/crates/tools/src/gallery.rsindex cf0a3c1b..aaec8426 100644--- a/crates/tools/src/gallery.rs+++ b/crates/tools/src/gallery.rs@@ -594,7 +594,11 @@ mod tests {std::fs::write(&exe, b"x").unwrap();let json = serde_json::json!({ "gallery-dl": { "version": "1.17.0", "exe": exe } });std::fs::write(dir.path().join("programs.json"), json.to_string()).unwrap();- assert_eq!(installed(dir.path()), None, "not the old one");+ // Not the old one: on Linux and macOS a gallery-dl the system has may stand in (#571).+ assert!(+ installed(dir.path()).is_none_or(|i| i.version != "1.17.0"),+ "not the old one"+ );assert_eq!(chosen_too_old(dir.path()).map(|i| i.version).as_deref(),Some("1.17.0")