mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
Fix unix build errors
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
use anyhow::{anyhow, bail, Result};
|
use anyhow::{anyhow, bail, Result};
|
||||||
use mtzip::level::CompressionLevel;
|
use mtzip::level::CompressionLevel;
|
||||||
use ripunzip::{NullProgressReporter, UnzipEngine, UnzipOptions};
|
use ripunzip::{NullProgressReporter, UnzipEngine, UnzipOptions};
|
||||||
use std::os::windows::fs::MetadataExt;
|
|
||||||
use std::{
|
use std::{
|
||||||
collections::HashSet,
|
collections::HashSet,
|
||||||
fs, io,
|
fs, io,
|
||||||
@@ -127,7 +126,7 @@ pub fn delta<P1: AsRef<Path>, P2: AsRef<Path>, P3: AsRef<Path>>(
|
|||||||
|
|
||||||
visited_paths.insert(file_without_extension);
|
visited_paths.insert(file_without_extension);
|
||||||
|
|
||||||
if fs::metadata(&patch_file_path)?.file_size() == 0 {
|
if fs::metadata(&patch_file_path)?.len() == 0 {
|
||||||
// file has not changed, so we can continue.
|
// file has not changed, so we can continue.
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -112,6 +112,7 @@ pub fn init_logging(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Initialize a Trace / Console logger for the current process.
|
/// Initialize a Trace / Console logger for the current process.
|
||||||
|
#[cfg(feature = "file-logging")]
|
||||||
pub fn trace_logger() {
|
pub fn trace_logger() {
|
||||||
TermLogger::init(LevelFilter::Trace, get_config(None), TerminalMode::Mixed, ColorChoice::Never).unwrap();
|
TermLogger::init(LevelFilter::Trace, get_config(None), TerminalMode::Mixed, ColorChoice::Never).unwrap();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user