wok-current rev 25690
Fix display checkspace, only updates available
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Mar 15 08:30:29 2024 +0000 (9 months ago) |
parents | 7cdb1dd34069 |
children | be0bd7139d99 |
files | tazpkg/stuff/checkspace-module.patch |
line diff
1.1 --- a/tazpkg/stuff/checkspace-module.patch Fri Mar 15 08:05:17 2024 +0000 1.2 +++ b/tazpkg/stuff/checkspace-module.patch Fri Mar 15 08:30:29 2024 +0000 1.3 @@ -10,7 +10,7 @@ 1.4 time="$(date +%s)" 1.5 1.6 # Recharge packages databases (if necessary) (respects already exported "root" value) 1.7 -@@ -114,6 +122,7 @@ 1.8 +@@ -122,6 +125,7 @@ 1.9 install="n" 1.10 _ 'System is up-to-date...' 1.11 else 1.12 @@ -18,17 +18,18 @@ 1.13 blocked_count=$(wc -m < "$blocked_counter") 1.14 1.15 blocked=$(_p \ 1.16 -@@ -131,6 +139,10 @@ 1.17 - '%s installed packages scanned in %ds' "$pkgs" \ 1.18 - "<c 32>$pkgs</c>" "$time")" 1.19 - 1.20 -+emsg "$(_p \ 1.21 -+ 'You need %s free space.' \ 1.22 -+ 'You need %s free space.' "$spaceneed" \ 1.23 -+ "<c 32>$spaceneed</c>")" 1.24 - 1.25 - # Clean 1.26 - rm "$blocked_counter" "$tmp_up_list" 1.27 +@@ -133,6 +137,11 @@ 1.28 + 'You have %s available upgrade (%s)' \ 1.29 + 'You have %s available upgrades (%s)' "$upnb" \ 1.30 + "$upnb" "$blocked")" 1.31 ++ 1.32 ++ emsg "$(_p \ 1.33 ++ 'You need %s free space.' \ 1.34 ++ 'You need %s free space.' "$spaceneed" \ 1.35 ++ "<c 32>$spaceneed</c>")" 1.36 + fi 1.37 + emsg "$(_p \ 1.38 + '%s installed package scanned in %ds' \ 1.39 --- a/po/fr.po 1.40 +++ b/po/fr.po 1.41 @@ -1329,6 +1329,10 @@