mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 04:53:07 -04:00
sys-apps/coolercontrold: add 3.0.2
Signed-off-by: Alfred Wingate <parona@protonmail.com> Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
This commit is contained in:
committed by
Paul Zander
parent
b2db2d6111
commit
fb210a4ff3
@@ -0,0 +1,34 @@
|
||||
Patch to make it easy to sed in the configured python interpeter and mention the liquidctl use flag in the error message.
|
||||
diff --git a/coolercontrold/src/repositories/liquidctl/liqctld_service.rs b/coolercontrold/src/repositories/liquidctl/liqctld_service.rs
|
||||
index 179745d3..8cfbceb4 100644
|
||||
--- a/coolercontrold/src/repositories/liquidctl/liqctld_service.rs
|
||||
+++ b/coolercontrold/src/repositories/liquidctl/liqctld_service.rs
|
||||
@@ -122,7 +122,7 @@ fn create_command() -> (String, &'static str) {
|
||||
info!("Running liqctld inside an AppImage");
|
||||
(format!("{appdir}/usr/bin/python3"), "-I")
|
||||
} else {
|
||||
- ("python3".to_string(), "-q")
|
||||
+ ("@@PYTHON@@".to_string(), "-q")
|
||||
}
|
||||
}
|
||||
|
||||
diff --git a/coolercontrold/src/repositories/liquidctl/liquidctl_repo.rs b/coolercontrold/src/repositories/liquidctl/liquidctl_repo.rs
|
||||
index 230d6391..1dca6180 100644
|
||||
--- a/coolercontrold/src/repositories/liquidctl/liquidctl_repo.rs
|
||||
+++ b/coolercontrold/src/repositories/liquidctl/liquidctl_repo.rs
|
||||
@@ -81,10 +81,10 @@ impl LiquidctlRepo {
|
||||
}
|
||||
if let Err(err) = liqctld_service::verify_env().await {
|
||||
let msg = format!(
|
||||
- "Python liquidctl system package not detected. If you want liquidctl device \
|
||||
- support, please make sure the liquidctl package is installed with your \
|
||||
- distribution's package manager. If not, you may disable liquidctl support \
|
||||
- to no longer see this message. {err}"
|
||||
+ "Python liquidctl system package not detected or liquidctl use flag is disabled \
|
||||
+ for coolercontrold. If you want liquidctl device support, please make sure \
|
||||
+ the liquidctl use flag is enabled for coolercontrold. If not, you may disable \
|
||||
+ liquidctl support to no longer see this message. {err}"
|
||||
);
|
||||
return Err(InitError::PythonEnv { msg }.into());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user