Make it possible to override the OS

This commit is contained in:
Danilo Bargen 2016-01-22 08:28:23 +01:00
commit 1e69f4ac4e

View file

@ -130,8 +130,13 @@ fn main() {
process::exit(0);
}
// Specify target OS
let os: OsType = match args.flag_os {
Some(os) => os,
None => get_os(),
};
// Initialize cache
let os: OsType = get_os();
let cache = Cache::new(ARCHIVE_URL, os);
// Clear cache, pass through