This commit is contained in:
inxi-svn 2009-10-13 20:14:45 +00:00
parent 96863ec661
commit 8171130329

4
inxi
View file

@ -3103,7 +3103,7 @@ get_repo_data()
REPO_DATA="$( grep -Esv '(^[[:space:]]*$|^[[:space:]]*#)' $apt_file $apt_file.d/*.list )" REPO_DATA="$( grep -Esv '(^[[:space:]]*$|^[[:space:]]*#)' $apt_file $apt_file.d/*.list )"
REPO_FILE_ID='apt sources' REPO_FILE_ID='apt sources'
elif [[ -d $yum_repo_dir ]];then elif [[ -d $yum_repo_dir ]];then
for repo_file in $( ls $yum_repo_dir ) for repo_file in $( ls $yum_repo_dir*.repo )
do do
repo_data_working="$( gawk -v repoFile=$repo_file ' repo_data_working="$( gawk -v repoFile=$repo_file '
BEGIN { BEGIN {
@ -3140,7 +3140,7 @@ get_repo_data()
repoTitle="" repoTitle=""
} }
} }
' $yum_repo_dir$repo_file )" ' $repo_file )"
# then load the global for each file as it gets filled # then load the global for each file as it gets filled
if [[ -n $repo_data_working ]];then if [[ -n $repo_data_working ]];then