new tarball, same version. More fixes to avoid failures on -r for various ssystems

This commit is contained in:
inxi-svn 2014-09-24 20:40:49 +00:00
parent 0c8f2108dd
commit 39e240b6d6

20
inxi
View file

@ -9287,6 +9287,7 @@ get_repo_data()
fi
fi
done
repo_data_working=''
fi
# yum - fedora, redhat, centos, etc. Note that rpmforge also may create apt sources
# in /etc/apt/sources.list.d/. Therefore rather than trying to assume what package manager is
@ -9371,10 +9372,10 @@ get_repo_data()
REPO_DATA="$REPO_DATA
$repo_data_working"
fi
repo_data_working=''
fi
done
fi
repo_data_working=''
# pacman - archlinux, going to assume that pisi and arch/pacman, etc don't have the above issue with apt/yum
elif [[ -f $pacman_conf ]];then
# get list of mirror include files, trim white space off ends
@ -9411,6 +9412,7 @@ $repo_data_working"
done
# execute line breaks
REPO_DATA="$( echo -e $repo_data_working2 )"
repo_data_working=''
# pisi - pardus
elif [[ -f $slackpkg_file ]];then
# note, only one file, but loop it in case more are added in future
@ -9429,6 +9431,7 @@ $repo_data_working"
fi
fi
done
repo_data_working=''
elif [[ -d $pisi_dir && -n $( type -p pisi ) ]];then
REPO_DATA="$( pisi list-repo )"
log_function_data "pisi-list-repo: $REPO_DATA"
@ -9459,6 +9462,7 @@ $repo_data_working"
done <<< "$REPO_DATA"
# echo and execute the line breaks inserted
REPO_DATA="$( echo -e $repo_data_working )"
repo_data_working=''
# Mandriva/Mageia using: urpmq
elif type -p urpmq &>/dev/null;then
REPO_DATA="$( urpmq --list-media active --list-url )"
@ -9511,7 +9515,7 @@ $repo_data_working"
log_function_data 'cat' "$repo_files"
for repo_file in $repo_files
do
repo_data_working="$repo_data_working$( gawk -v repoFile=$repo_file '
repo_data_working="$( gawk -v repoFile=$repo_file '
BEGIN {
FS=":"
IGNORECASE=1
@ -9541,13 +9545,13 @@ $repo_data_working"
}
}
' $repo_file )"
done
fi
if [[ -z $REPO_DATA ]];then
REPO_DATA="$repo_data_working"
elif [[ -n $repo_data_working ]];then
REPO_DATA="$REPO_DATA
if [[ -z $REPO_DATA ]];then
REPO_DATA="$repo_data_working"
elif [[ -n $repo_data_working ]];then
REPO_DATA="$REPO_DATA
$repo_data_working"
fi
done
fi
repo_data_working=''
elif [[ -f $openbsd_conf ]];then