mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
forgot, added debuggers to repo data so I can figure out what is actcually being processed.
This commit is contained in:
parent
e094ceb0f5
commit
3b9fd904bc
8
inxi
8
inxi
|
@ -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 '
|
||||||
|
|
Loading…
Reference in a new issue