Implement cleanup for Debian based distros (#102)
This commit is contained in:
committed by
Roey Darwish Dror
parent
88ab17cfc3
commit
66c6338b42
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user