wok-current annotate tazpkg/stuff/checkspace-module.patch @ rev 25686

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