mirror of https://framagit.org/kyodev/kyopages.git
getInfo 2.36.1
This commit is contained in:
parent
0dd0c80ac1
commit
770ffe9661
|
@ -327,7 +327,7 @@ f__wget_test(){ # 06/11/2017
|
|||
# un test si variable $1 est vide est fait
|
||||
# un test si variable $1 contient 'nofile', non trouvé par f_grep_file
|
||||
# f_display "variable" "type" "titrage" "titrage_commentaire"
|
||||
f_display(){ # 16/11/2017
|
||||
f_display(){ # 17/11/2017
|
||||
[[ "${!1}" || "$2" =~ :vide ]] || return 0 # test si contenu dans $1
|
||||
local display="" toDisplay="${!1}"
|
||||
[ "$toDisplay" ] || toDisplay="vide"
|
||||
|
@ -338,7 +338,7 @@ f_display(){ # 16/11/2017
|
|||
[[ "$2" =~ sans|var|cmd ]] || display=" **⚡ erreur f_display \$2 ($1 $2 $3) ⚡** \n" # test $2 valide
|
||||
[[ "$2" =~ "var" ]] && display="**$3**" # type var, titre en gras
|
||||
[[ "$2" =~ "cmd" ]] && display="\`$3\`" # type cmd, titre entre backtick
|
||||
[ "$4" ] && display+=$'\xc2\xa0'$'\xc2\xa0\xc2\xa0\xc2\xa0\xc2\xa0'" ( $4 )" # +$4 en gras avec 5 espaces insécables avant
|
||||
[ "$4" ] && display+="$spc5( $4 )" # +$4 en gras avec 5 espaces insécables avant
|
||||
[ "$2" == "sans" ] || display+=" \n"
|
||||
if [ "$toDisplay" == "nofile" ]; then
|
||||
display+="\n* fichier $1 non trouvé \n"
|
||||
|
@ -1333,7 +1333,7 @@ fi_pkg__ctl(){ #v1 16/11/2017
|
|||
fi
|
||||
}
|
||||
|
||||
fi_pkg_apt(){ #v3 16/11/2017
|
||||
fi_pkg_apt(){ #v3 17/11/2017
|
||||
local sources ifile dateMaj nb_packages stock_upgd upgradable_qte upgrade upgrade_comment
|
||||
local notUpgraded notUpgraded_comment toRemove_qte toRemove toRemove_comment
|
||||
local non_ii non_ii_qte non_ii_comment etat ligne stock_etat deborphan deborphan_qte deborphan_comment
|
||||
|
@ -1461,7 +1461,6 @@ fi_pkg_apt(){ #v3 16/11/2017
|
|||
text="## gestion de paquets **${fg_pkg_mgr#*:}** \n\n"
|
||||
text+="* nombre de paquets installés: **$nb_packages** \n"
|
||||
text+="* dernière mise à jour apt: **$dateMaj** \n"
|
||||
[ "$holded" ] || text+="* pas de paquets épinglés (hold) \n"
|
||||
text+="\n"
|
||||
f_display "sources" "cmd" "grep -Ersv '^#|^$' /etc/apt/sources.list /etc/apt/sources.list.d/*.list" \
|
||||
"dépôts"
|
||||
|
@ -1473,7 +1472,8 @@ fi_pkg_apt(){ #v3 16/11/2017
|
|||
f_dspl_alert "alert_full_upgrade" "info"
|
||||
f_display "toRemove" "cmd:vide" "apt autoremove --simulate" "$toRemove_comment"
|
||||
f_dspl_alert "alert_remove" "info"
|
||||
f_display "non_ii" "cmd:vide" "dpkg -l | gawk '/^rc/{print \$2}" "$non_ii_comment"
|
||||
#dpkg -l | gawk '! /^ii/ {print $0}'
|
||||
f_display "non_ii" "cmd:vide" "dpkg -l | grep -v '^ii'" "$non_ii_comment"
|
||||
f_dspl_alert "alert_non_ii" "info"
|
||||
[ "$( f__cmd_exist deborphan )" ] && f_display "deborphan" "cmd:vide" "deborphan -P" \
|
||||
"$deborphan_comment"
|
||||
|
|
|
@ -5,6 +5,10 @@
|
|||
|
||||
|
||||
|
||||
## 2.36.1 17/11/2017
|
||||
|
||||
* fix mineurs: fi_pkg_apt
|
||||
|
||||
## 2.36.0 16/11/2017
|
||||
|
||||
* nouveau: fi_pkg_apt, test paquets hold, révision affichage & non standard
|
||||
|
|
Loading…
Reference in New Issue