forgot, added debuggers to repo data so I can figure out what is actcually being processed.

This commit is contained in:
inxi-svn 2014-09-24 17:56:22 +00:00
parent e094ceb0f5
commit 3b9fd904bc

8
inxi
View file

@ -1455,7 +1455,10 @@ log_function_data()
;; ;;
cat) cat)
if [[ $B_LOG_FULL_DATA == 'true' ]];then if [[ $B_LOG_FULL_DATA == 'true' ]];then
logged_data="\n$line\nFull file data: cat $2\n\n$( cat $2 )\n$line\n" for cat_file in $2
do
logged_data="$logged_data\n$line\nFull file data: cat $cat_file\n\n$( cat $cat_file )\n$line\n"
done
spacer='' spacer=''
fi fi
;; ;;
@ -9399,6 +9402,7 @@ $repo_data_working"
REPO_DATA="$( grep -Esv '(^[[:space:]]*$|^[[:space:]]*#)' $slackpkg_file | sed $SED_RX 's/^(.*)/slackpkg sources:\1/' )" REPO_DATA="$( grep -Esv '(^[[:space:]]*$|^[[:space:]]*#)' $slackpkg_file | sed $SED_RX 's/^(.*)/slackpkg sources:\1/' )"
elif [[ -d $pisi_dir && -n $( type -p pisi ) ]];then elif [[ -d $pisi_dir && -n $( type -p pisi ) ]];then
REPO_DATA="$( pisi list-repo )" REPO_DATA="$( pisi list-repo )"
log_function_data "pisi-list-repo: $REPO_DATA"
# now we need to create the structure: repo info: repo path # now we need to create the structure: repo info: repo path
# we do that by looping through the lines of the output and then # we do that by looping through the lines of the output and then
# putting it back into the <data>:<url> format print repos expects to see # putting it back into the <data>:<url> format print repos expects to see
@ -9429,6 +9433,7 @@ $repo_data_working"
# Mandriva/Mageia using: urpmq # Mandriva/Mageia using: urpmq
elif type -p urpmq &>/dev/null;then elif type -p urpmq &>/dev/null;then
REPO_DATA="$( urpmq --list-media active --list-url )" REPO_DATA="$( urpmq --list-media active --list-url )"
log_function_data "urpmq: $REPO_DATA"
# now we need to create the structure: repo info: repo path # now we need to create the structure: repo info: repo path
# we do that by looping through the lines of the output and then # we do that by looping through the lines of the output and then
# putting it back into the <data>:<url> format print repos expects to see # putting it back into the <data>:<url> format print repos expects to see
@ -9474,6 +9479,7 @@ $repo_data_working"
fi fi
if [[ -d $ports_dir ]];then if [[ -d $ports_dir ]];then
repo_files=$(ls ${ports_dir}*.conf 2>/dev/null ) repo_files=$(ls ${ports_dir}*.conf 2>/dev/null )
log_function_data 'cat' "$repo_files"
for repo_file in $repo_files for repo_file in $repo_files
do do
repo_data_working="$repo_data_working$( gawk -v repoFile=$repo_file ' repo_data_working="$repo_data_working$( gawk -v repoFile=$repo_file '