Skip to content

Commit d0ab3eb

Browse files
committed
fix(actions): add --no-check-dbus for oma commands
Sometimes I package on the go, this will eliminate the on-battery warning.
1 parent ae1234d commit d0ab3eb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/actions/mod.rs

Lines changed: 1 addition & 1 deletion
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"#;
22-
const OMA_UPDATE_SCRIPT: &str = r#"export OMA_NO_BELL=1 OMA_NO_PROGRESS=1;oma upgrade -y --force-confnew --force-unsafe-io && oma autoremove -y --remove-config"#;
22+
const OMA_UPDATE_SCRIPT: &str = r#"export OMA_NO_BELL=1 OMA_NO_PROGRESS=1;oma upgrade -y --force-confnew --force-unsafe-io --no-check-dbus && oma autoremove -y --remove-config --no-check-dbus"#;
2323

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

src/actions/packaging.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ pub fn package_fetch<S: AsRef<str>>(instance: &str, packages: &[S]) -> Result<i3
303303
/// Add topics
304304
pub fn add_topics(instance: &str, settings: &BuildSettings) -> Result<i32> {
305305
if !settings.with_topics.is_empty() {
306-
let mut cmd = vec!["/bin/oma", "topics", "--yes"];
306+
let mut cmd = vec!["/bin/oma", "topics", "--yes", "--no-check-dbus"];
307307
for topic in settings.with_topics {
308308
cmd.push("--opt-in");
309309
cmd.push(topic);

0 commit comments

Comments
 (0)