dua-cli: update to 2.28.0

This commit is contained in:
cinerea0 2024-01-23 11:51:26 -05:00 committed by cinerea0
parent 63b6d58882
commit f889c48a2c
2 changed files with 2 additions and 35 deletions

View File

@ -1,33 +0,0 @@
From 392e808ebae97faecdaadf044c7ebd112b82cc94 Mon Sep 17 00:00:00 2001
From: cinerea0 <cinerea0@disroot.org>
Date: Mon, 11 Dec 2023 14:51:53 -0500
Subject: [PATCH] fix: EntryData size test passes on 32-bit (#197)
EntryData doesn't need to be exactly 80 to test memory consumption, just
less than it.
---
src/traverse.rs | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/traverse.rs b/src/traverse.rs
index 157ce2c..b2c8724 100644
--- a/src/traverse.rs
+++ b/src/traverse.rs
@@ -312,10 +312,10 @@ mod tests {
#[test]
fn size_of_entry_data() {
- assert_eq!(
- std::mem::size_of::<EntryData>(),
- 80,
- "the size of this should not change unexpectedly as it affects overall memory consumption"
+ assert!(
+ std::mem::size_of::<EntryData>() <= 80,
+ "the size of this ({}) should not exceed 80 as it affects overall memory consumption",
+ std::mem::size_of::<EntryData>()
);
}
}
--
2.43.0

View File

@ -1,6 +1,6 @@
# Template file for 'dua-cli'
pkgname=dua-cli
version=2.23.0
version=2.28.0
revision=1
build_style=cargo
short_desc="Tool to conveniently learn about the disk usage of directories"
@ -9,7 +9,7 @@ license="MIT"
homepage="https://github.com/Byron/dua-cli"
changelog="https://raw.githubusercontent.com/Byron/dua-cli/main/CHANGELOG.md"
distfiles="https://github.com/Byron/dua-cli/archive/refs/tags/v${version}.tar.gz"
checksum=61f6fd0c13949d23224d9776c2fd444956d73dd363501e867cf11df6ca89ddfa
checksum=a44691d0dae8e567951cbe4f0b187edc60d306f78e95ceed9e96b9310e6ce350
post_install() {
vlicense LICENSE