Skip to content
Snippets Groups Projects
Commit cba14153 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

check_packages2install - update docs

parent 9610acf5
Branches
No related tags found
1 merge request!19check_packages2install - update docs
...@@ -148,7 +148,8 @@ function _detectPkgManager(){ ...@@ -148,7 +148,8 @@ function _detectPkgManager(){
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# show grouped packages by category # show grouped packages by category
# OOPS: uses global vars :-/ # global string dir_filter directory where to find filters
# global string packagemanOut output of update lister command
function showFilteredPackages(){ function showFilteredPackages(){
# filtered package view # filtered package view
...@@ -159,8 +160,7 @@ function showFilteredPackages(){ ...@@ -159,8 +160,7 @@ function showFilteredPackages(){
filterAll="" filterAll=""
# show filtered view # show filtered view
local _selfdir=$( dirname "$0" ) for filterfile in $( find "$dir_filter" -name "*txt" | sort )
for filterfile in $( find $dir_filter -name "*txt" | sort )
do do
# get group name from filename # get group name from filename
filtername=$( echo "$filterfile" | rev | cut -f 1 -d "/" | rev | sed "s#.txt\$##g" | sed "s#^[0-9]*_##g" ) filtername=$( echo "$filterfile" | rev | cut -f 1 -d "/" | rev | sed "s#.txt\$##g" | sed "s#^[0-9]*_##g" )
...@@ -221,6 +221,7 @@ if [ -z "$pkgmanager" ]; then ...@@ -221,6 +221,7 @@ if [ -z "$pkgmanager" ]; then
ph.abort "UNKNOWN: the package manager was not detected/ is not supported." ph.abort "UNKNOWN: the package manager was not detected/ is not supported."
fi fi
# load functions for the detected package manager
. "${dir_pkg}/${pkgmanager}.sh" || exit 2 . "${dir_pkg}/${pkgmanager}.sh" || exit 2
packagemanOut=$( ${pkgmanager}GetUpdates ) packagemanOut=$( ${pkgmanager}GetUpdates )
......
...@@ -19,6 +19,7 @@ function pamacGetUpdates(){ ...@@ -19,6 +19,7 @@ function pamacGetUpdates(){
# --------------------------------------------------------------- # ---------------------------------------------------------------
# extract list of packages 2 install # extract list of packages 2 install
# global string packagemanOut output of update lister command
function pamacPackages(){ function pamacPackages(){
echo "$packagemanOut" | grep -- '->' echo "$packagemanOut" | grep -- '->'
} }
......
...@@ -41,7 +41,7 @@ function yumStatus(){ ...@@ -41,7 +41,7 @@ function yumStatus(){
} }
# --------------------------------------------------------------- # ---------------------------------------------------------------
# extract count of critical # extract count of critical packages
# param string text to extract critical counter from # param string text to extract critical counter from
function yumCritical(){ function yumCritical(){
local summary="$1" local summary="$1"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment