dua-cli: update to 2.23.0.

This commit is contained in:
Jan Christian Grünhage 2023-12-15 19:58:27 +01:00 committed by Duncan Overbruck
parent bd372436fe
commit 41fece542b
2 changed files with 35 additions and 2 deletions

View File

@ -0,0 +1,33 @@
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.20.3
version=2.23.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=b526c8c43853943f025ba36bf7297fbd9b1beb395ad92e70c41fed7d8d584be7
checksum=61f6fd0c13949d23224d9776c2fd444956d73dd363501e867cf11df6ca89ddfa
post_install() {
vlicense LICENSE