diff options
Diffstat (limited to 'security/pdfrip/files')
-rw-r--r-- | security/pdfrip/files/patch-Cargo.toml | 13 | ||||
-rw-r--r-- | security/pdfrip/files/patch-src_core_engine.rs | 16 |
2 files changed, 29 insertions, 0 deletions
diff --git a/security/pdfrip/files/patch-Cargo.toml b/security/pdfrip/files/patch-Cargo.toml new file mode 100644 index 000000000000..2ecb0896f735 --- /dev/null +++ b/security/pdfrip/files/patch-Cargo.toml @@ -0,0 +1,13 @@ +Update the library to fix build breakage. + +--- Cargo.toml.orig 2025-07-27 21:02:59 UTC ++++ Cargo.toml +@@ -5,7 +5,7 @@ authors = ["Mufeed VH <mufeed@lyminal.space>", "Pommaq + authors = ["Mufeed VH <mufeed@lyminal.space>", "Pommaq"] + + [dependencies] +-indicatif = "0.16.2" ++indicatif = "0.18.0" + log = "0.4.19" + anyhow = "1.0.72" + crossbeam = "0.8.2" diff --git a/security/pdfrip/files/patch-src_core_engine.rs b/security/pdfrip/files/patch-src_core_engine.rs new file mode 100644 index 000000000000..ed1f65578d73 --- /dev/null +++ b/security/pdfrip/files/patch-src_core_engine.rs @@ -0,0 +1,16 @@ +Patch the code to be compatible with the library bump. + +--- src/core/engine.rs.orig 2024-01-09 13:27:28 UTC ++++ src/core/engine.rs +@@ -48,9 +48,9 @@ pub fn crack_file( + let mut success = None; + + let progress_bar = ProgressBar::new(producer.size() as u64); +- progress_bar.set_draw_delta(1000); + progress_bar.set_style(ProgressStyle::default_bar() +- .template("{spinner:.green} [{elapsed_precise}] [{bar:40.cyan/blue}] {pos:>7}/{len:7} {percent}% {per_sec} ETA: {eta}")); ++ .template("{spinner:.green} [{elapsed_precise}] [{bar:40.cyan/blue}] {pos:>7}/{len:7} {percent}% {per_sec} ETA: {eta}") ++ .unwrap()); + + loop { + match success_reader.try_recv() { |