Implement cleanup for Debian based distros (#102)

This commit is contained in:
Christopher Medlin
2018-12-16 23:22:59 -08:00
committed by Roey Darwish Dror
parent 88ab17cfc3
commit 66c6338b42
2 changed files with 21 additions and 4 deletions

View File

@@ -116,7 +116,10 @@ fn run() -> Result<(), Error> {
if !opt.no_system {
match &distribution {
Ok(distribution) => {
report.push_result(execute(|| distribution.upgrade(&sudo, opt.dry_run), opt.no_retry)?);
report.push_result(execute(
|| distribution.upgrade(&sudo, opt.cleanup, opt.dry_run),
opt.no_retry,
)?);
}
Err(e) => {
println!("Error detecting current distribution: {}", e);