mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 08:57:57 +00:00
try two on branch one for better rpm / yum enabled handling
This commit is contained in:
parent
5021731458
commit
6107713756
6
inxi
6
inxi
|
@ -3,7 +3,7 @@
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 1.8.24
|
#### version: 1.8.24
|
||||||
#### Date: December 6 2012
|
#### Date: December 6 2012
|
||||||
#### Patch Number: 03-b1
|
#### Patch Number: 04-b1
|
||||||
########################################################################
|
########################################################################
|
||||||
#### SPECIAL THANKS
|
#### SPECIAL THANKS
|
||||||
########################################################################
|
########################################################################
|
||||||
|
@ -6075,14 +6075,14 @@ get_repo_data()
|
||||||
urlData = $1
|
urlData = $1
|
||||||
}
|
}
|
||||||
# note: either it is simple enabled, or it is enabled = 1. enabled = 0 means disabled
|
# note: either it is simple enabled, or it is enabled = 1. enabled = 0 means disabled
|
||||||
$1 ~ /^enabled=/ && $1 !~ /^enabled[[:space:]]*=[[:space:]]*0/ {
|
/^enabled=/ {
|
||||||
enabledStatus = $1
|
enabledStatus = $1
|
||||||
}
|
}
|
||||||
# print out the line if all 3 values are found, otherwise if a new
|
# print out the line if all 3 values are found, otherwise if a new
|
||||||
# repoTitle is hit above, it will print out the line there instead
|
# repoTitle is hit above, it will print out the line there instead
|
||||||
{
|
{
|
||||||
if ( urlData != "" && enabledStatus != "" && repoTitle != "" ){
|
if ( urlData != "" && enabledStatus != "" && repoTitle != "" ){
|
||||||
if ( enabledStatus !~ /enabled=0/ ){
|
if ( enabledStatus !~ /enabled[[:space:]]*=[[:space:]]*0/ ){
|
||||||
print_line( repoFile, repoTitle, urlData )
|
print_line( repoFile, repoTitle, urlData )
|
||||||
}
|
}
|
||||||
enabledStatus=""
|
enabledStatus=""
|
||||||
|
|
Loading…
Reference in a new issue