diff options
author | fxqnlr <[email protected]> | 2023-04-29 23:59:54 +0200 |
---|---|---|
committer | fxqnlr <[email protected]> | 2023-04-29 23:59:54 +0200 |
commit | 2b180daf1e2687436046b853c59e0abe12c50f57 (patch) | |
tree | 9a6a4ddc418270d69a153e9c2980247657066f08 /src/cache.rs | |
parent | 41a844af34e4c51c5924fe48778aa1148ecdbfb7 (diff) | |
download | modlist-2b180daf1e2687436046b853c59e0abe12c50f57.tar modlist-2b180daf1e2687436046b853c59e0abe12c50f57.tar.gz modlist-2b180daf1e2687436046b853c59e0abe12c50f57.zip |
added fallback if no primaries, removed prints
Diffstat (limited to 'src/cache.rs')
-rw-r--r-- | src/cache.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cache.rs b/src/cache.rs index 11645d1..c928670 100644 --- a/src/cache.rs +++ b/src/cache.rs | |||
@@ -31,7 +31,7 @@ pub fn get_cached_versions(path: &str) -> HashMap<String, String> { | |||
31 | /// Panics if . | 31 | /// Panics if . |
32 | pub fn copy_cached_version(version_path: &str, download_path: &str) { | 32 | pub fn copy_cached_version(version_path: &str, download_path: &str) { |
33 | let versplit: Vec<&str> = version_path.split('/').collect(); | 33 | let versplit: Vec<&str> = version_path.split('/').collect(); |
34 | let download = format!("{}{}", download_path, versplit[versplit.len() - 1]); | 34 | let download = format!("{}/{}", download_path, versplit[versplit.len() - 1]); |
35 | // println!("{:#?}", download); | 35 | // println!("{:#?}", download); |
36 | copy(version_path, download).unwrap(); | 36 | copy(version_path, download).unwrap(); |
37 | } | 37 | } |