Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Fix build for Android (#809)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentlbm authored Dec 13, 2021
1 parent 1f3d8d3 commit 1c24014
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/steps/os/android.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use crate::execution_context::ExecutionContext;
use crate::terminal::print_separator;
use crate::utils::require;
use crate::Step;
use anyhow::Result;

pub fn upgrade_packages(ctx: &ExecutionContext) -> Result<()> {
Expand All @@ -10,7 +11,7 @@ pub fn upgrade_packages(ctx: &ExecutionContext) -> Result<()> {

let mut command = ctx.run_type().execute(&pkg);
command.arg("upgrade");
if ctx.config().yes() {
if ctx.config().yes(Step::System) {
command.arg("-y");
}
command.check_run()?;
Expand All @@ -21,7 +22,7 @@ pub fn upgrade_packages(ctx: &ExecutionContext) -> Result<()> {
let apt = require("apt")?;
let mut command = ctx.run_type().execute(&apt);
command.arg("autoremove");
if ctx.config().yes() {
if ctx.config().yes(Step::System) {
command.arg("-y");
}
command.check_run()?;
Expand Down

0 comments on commit 1c24014

Please sign in to comment.