remove .iw4xrevision

This commit is contained in:
2024-10-01 18:33:29 +02:00
parent 519f70dd45
commit cfc00fd7bc
2 changed files with 1 additions and 3 deletions

View File

@@ -5,7 +5,6 @@ use crate::http_async;
use crate::misc; use crate::misc;
use crate::structs; use crate::structs;
use std::fs;
use std::path::Path; use std::path::Path;
pub async fn remote_revision() -> u16 { pub async fn remote_revision() -> u16 {
@@ -44,5 +43,4 @@ pub async fn update(dir: &Path, cache: &mut structs::Cache) {
.unwrap(); .unwrap();
cache.iw4x_revision = format!("r{remote}"); cache.iw4x_revision = format!("r{remote}");
fs::write(dir.join(".iw4xrevision"), &cache.iw4x_revision).unwrap();
} }

View File

@@ -355,7 +355,7 @@ async fn update(
std::process::exit(0); std::process::exit(0);
} }
let old_files = [".sha-sums"]; let old_files = [".sha-sums", ".iw4xrevision"];
for f in old_files { for f in old_files {
if dir.join(f).exists() { if dir.join(f).exists() {
match fs::remove_file(dir.join(f)) { match fs::remove_file(dir.join(f)) {