pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

sysutils/macchina



Hi,

A small patch is needed for libmacchina crate:

➜  macchina diff -u
work/vendor/libmacchina-0.1.3.SAFE/src/netbsd/mod.rs
work/vendor/libmacchina-0.1.3/src/netbsd/mod.rs
--- work/vendor/libmacchina-0.1.3.SAFE/src/netbsd/mod.rs  1970-01-01
01:00:00.000000000 +0100
+++ work/vendor/libmacchina-0.1.3/src/netbsd/mod.rs     2021-03-26
10:19:28.717466642 +0000
@@ -44,6 +44,7 @@
                             .get(1)
                             .map_or("", |m| m.as_str())
                             .to_string()
+                            .replace(" ","")
                             .replace("%", "");
                         let percentage_f = percentage.parse::<f32>().unwrap();
                         let percentage_i = percentage_f.round() as u8;

(envstat inserts a space when the battery is low, which crashes).

The pull request was accepted upstream, but I have no idea how to get
the modified crate.


-- 
----


Home | Main Index | Thread Index | Old Index