wok-current view tazpkg/stuff/checkspace-module.patch @ rev 25690
Fix display checkspace, only updates available
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Mar 15 08:30:29 2024 +0000 (18 months ago) |
parents | ece35c6e0e49 |
children |
line source
1 --- a/modules/upgrade
2 +++ b/modules/upgrade
3 @@ -16,6 +16,9 @@
4 # Get TazPkg working environment
5 . @@MODULES@@/getenv
7 +# Get TazPkg checkspace module
8 +. @@MODULES@@/checkspace
9 +
10 time="$(date +%s)"
12 # Recharge packages databases (if necessary) (respects already exported "root" value)
13 @@ -122,6 +125,7 @@
14 install="n"
15 _ 'System is up-to-date...'
16 else
17 + spaceneed=$(check_space)
18 blocked_count=$(wc -m < "$blocked_counter")
20 blocked=$(_p \
21 @@ -133,6 +137,11 @@
22 'You have %s available upgrade (%s)' \
23 'You have %s available upgrades (%s)' "$upnb" \
24 "$upnb" "$blocked")"
25 +
26 + emsg "$(_p \
27 + 'You need %s free space.' \
28 + 'You need %s free space.' "$spaceneed" \
29 + "<c 32>$spaceneed</c>")"
30 fi
31 emsg "$(_p \
32 '%s installed package scanned in %ds' \
33 --- a/po/fr.po
34 +++ b/po/fr.po
35 @@ -1329,6 +1329,10 @@
36 msgid "Do you wish to install them now? (y/N)"
37 msgstr "Voulez-vous les installer maintenant ? (o/N)"
39 +#: modules/upgrade:147
40 +msgid "You need %s free space."
41 +msgstr "Vous avez besoin de %s d'espace libre."
42 +
43 #: modules/upgrade:157
44 msgid "Leaving without any upgrades installed."
45 msgstr "Sortie sans avoir installé de mise à jour."
46 --- a/po/tazpkg.pot
47 +++ b/po/tazpkg.pot
48 @@ -1314,6 +1314,10 @@
49 msgid "Do you wish to install them now? (y/N)"
50 msgstr ""
52 +#: modules/upgrade:147
53 +msgid "You need %s free space."
54 +msgstr ""
55 +
56 #: modules/upgrade:157
57 msgid "Leaving without any upgrades installed."
58 msgstr ""