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

yum: small fix

parent 4b77d4a2
No related branches found
No related tags found
1 merge request!255419 update check packages2install
...@@ -26,7 +26,8 @@ function yum.getUpdates(){ ...@@ -26,7 +26,8 @@ function yum.getUpdates(){
function yum.getPackageList(){ function yum.getPackageList(){
local iStart=3 local iStart=3
# detect number of line containing "Obsoleting Packages" # detect number of line containing "Obsoleting Packages"
typeset -i iEnd=$( echo "$packagemanOut" | grep -n '^Obsoleting Packages' | cut -f 1 -d ':' )-1 typeset -i local iEnd
iEnd=$( echo "$packagemanOut" | grep -n '^Obsoleting Packages' | cut -f 1 -d ':' )-1
local sEnd=$iEnd local sEnd=$iEnd
test "$iEnd" = "-1" && sEnd='$' test "$iEnd" = "-1" && sEnd='$'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment