mirror of https://framagit.org/kyodev/kyopages.git
getInfo 2.36.3
This commit is contained in:
parent
db7c179c0e
commit
8ef5ae691c
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
version=2.36.2
|
||||
version=2.36.3
|
||||
date="17/11/2017"
|
||||
projet="simpledeb"
|
||||
contact="IRC freenode ##sdeb ou https://framagit.org/kyodev/kyopages/issues/"
|
||||
|
@ -1360,7 +1360,7 @@ fi_pkg_apt(){ #v3 17/11/2017
|
|||
# => upgradable_qte [0]=upgraded, [1]=notUpgraded
|
||||
[ "${upgradable_qte[0]}" -gt 1 ] && pluriel="s" || unset pluriel
|
||||
upgrade_comment="${upgradable_qte[0]} paquet"$pluriel" à mettre à jour"
|
||||
[ "${upgradable_qte[0]}" -eq 0 ] && upgrade_comment=${upgrade_comment/0 }
|
||||
[ "${upgradable_qte[0]}" -eq 0 ] && upgrade_comment=${upgrade_comment/aucun }
|
||||
if [ "${upgradable_qte[0]}" -gt 0 ]; then # upgraded
|
||||
# upgrade
|
||||
upgrade=$( grep '^Inst' <<< "$stock_upgd" )
|
||||
|
@ -1392,7 +1392,7 @@ fi_pkg_apt(){ #v3 17/11/2017
|
|||
toRemove=$( sed '/newly/d' <<< "$toRemove" ) # suppression ligne état
|
||||
[ "$toRemove_qte" -gt 1 ] && pluriel="s" || unset pluriel
|
||||
toRemove_comment="$toRemove_qte paquet"$pluriel" non nécessaire"$pluriel
|
||||
[ "$toRemove_qte" -eq 0 ] && toRemove_comment=${toRemove_comment/0 }
|
||||
[ "$toRemove_qte" -eq 0 ] && toRemove_comment=${toRemove_comment/aucun }
|
||||
if [ "$toRemove_qte" -gt 0 ]; then
|
||||
toRemove=$( sed -E '/^Remv/!d; s/\[.*\]//g; s/Remv //' <<< $toRemove | tr '\n' ' ' )
|
||||
toRemove=${toRemove// / }
|
||||
|
@ -1409,7 +1409,7 @@ fi_pkg_apt(){ #v3 17/11/2017
|
|||
non_ii_qte=$( f__wcv -l "$non_ii" )
|
||||
[ "$non_ii_qte" -gt 1 ] && pluriel="s" || unset pluriel
|
||||
non_ii_comment="$non_ii_qte paquet"$pluriel" dans un état non standard"
|
||||
[ "$non_ii_qte" -eq 0 ] && non_ii_comment=${non_ii_comment/0 }
|
||||
[ "$non_ii_qte" -eq 0 ] && non_ii_comment=${non_ii_comment/aucun }
|
||||
if [ "$non_ii_qte" -gt 0 ]; then
|
||||
# extraction différents états constatés
|
||||
while read etat ligne ; do
|
||||
|
@ -1446,7 +1446,7 @@ fi_pkg_apt(){ #v3 17/11/2017
|
|||
deborphan_qte=$( f__wcv "-l" "$deborphan" )
|
||||
[ "$deborphan_qte" -gt 1 ] && pluriel="s" || unset pluriel
|
||||
deborphan_comment="$deborphan_qte bibliothèque"$pluriel" orpheline"$pluriel
|
||||
[ "$deborphan_qte" -eq 0 ] && deborphan_comment=${deborphan_comment/0 }
|
||||
[ "$deborphan_qte" -eq 0 ] && deborphan_comment=${deborphan_comment/aucune }
|
||||
if [ "$deborphan_qte" -gt 0 ]; then
|
||||
alert_deborphan="bibliothèque"$pluriel" orpheline"$pluriel", suppression possible: \n"
|
||||
alert_deborphan+='`apt remove \$(deborphan)` \n'
|
||||
|
@ -1457,7 +1457,7 @@ fi_pkg_apt(){ #v3 17/11/2017
|
|||
holded_qte=$( f__wcv "-l" "$holded" )
|
||||
[ "$holded_qte" -gt 1 ] && pluriel="s" || unset pluriel
|
||||
holded_comment="$holded_qte paquet"$pluriel" épinglé"$pluriel
|
||||
[ "$holded_qte" -eq 0 ] && holded_comment=${holded_comment/0/pas de }
|
||||
[ "$holded_qte" -eq 0 ] && holded_comment=${holded_comment/0/aucun }
|
||||
###
|
||||
text="## gestion de paquets **${fg_pkg_mgr#*:}** \n\n"
|
||||
text+="* nombre de paquets installés: **$nb_packages** \n"
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
|
||||
|
||||
## 2.36.2 17/11/2017
|
||||
## 2.36.3 17/11/2017
|
||||
|
||||
* fix mineurs: fi_pkg_apt
|
||||
|
||||
|
|
Loading…
Reference in New Issue