Skip to content

Commit 642799d

Browse files
committed
fix: do not clean packages cache when use oma to update-os
1 parent 66b2b8d commit 642799d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/actions/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const DEFAULT_MOUNTS: &[(&str, &str)] = &[
1919
("CACHE", "/var/cache/apt/archives"),
2020
];
2121
const APT_UPDATE_SCRIPT: &str = r#"export DEBIAN_FRONTEND=noninteractive;apt-get update -y --allow-releaseinfo-change && apt-get -y -o Dpkg::Options::="--force-confnew" full-upgrade --autoremove --purge && apt autoclean"#;
22-
const OMA_UPDATE_SCRIPT: &str = r#"oma upgrade -y --force-confnew --no-progress --force-unsafe-io && oma autoremove -y --no-progress --remove-config && oma clean --no-progress"#;
22+
const OMA_UPDATE_SCRIPT: &str = r#"oma upgrade -y --force-confnew --no-progress --force-unsafe-io && oma autoremove -y --no-progress --remove-config"#;
2323

2424
type MountOptions = (Vec<String>, Vec<(String, &'static str)>);
2525
/// Ensure that the directories exist and mounted

0 commit comments

Comments
 (0)