branch one, trying patch for suse repos

This commit is contained in:
inxi-svn 2013-06-16 03:51:06 +00:00
parent f5bea5c487
commit b95e875887

6
inxi
View file

@ -3,7 +3,7 @@
#### Script Name: inxi
#### Version: 1.9.8
#### Date: June 15 2013
#### Patch Number: 02-b1
#### Patch Number: 03-b1
########################################################################
#### SPECIAL THANKS
########################################################################
@ -7283,7 +7283,7 @@ get_repo_data()
local repo_name=''
local apt_file='/etc/apt/sources.list' yum_repo_dir='/etc/yum.repos.d/' yum_conf='/etc/yum.conf'
local pacman_conf='/etc/pacman.conf' pacman_repo_dir='/etc/pacman.d/' pisi_dir='/etc/pisi/'
local zypp_repo_dir='/etc/zypp/repos.d' freebsd_conf='/etc/portsnap.conf'
local zypp_repo_dir='/etc/zypp/repos.d/' freebsd_conf='/etc/portsnap.conf'
# apt - debian, buntus, also sometimes some yum/rpm repos may create apt repos here as well
if [[ -f $apt_file || -d $apt_file.d ]];then
@ -7300,7 +7300,7 @@ get_repo_data()
repo_files=$( ls $yum_repo_dir*.repo $yum_conf 2>/dev/null )
repo_name='yum'
elif [[ -d $zypp_repo_dir ]];then
repo_files=$( ls $zypp_repo_dir 2>/dev/null )
repo_files=$( ls $zypp_repo_dir*.repo 2>/dev/null )
repo_name='zypp'
fi
if [[ -n $repo_files ]];then