From 61077137563928f3023f43d0c9b53d36a520fcef Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Sat, 22 Dec 2012 03:15:02 +0000 Subject: [PATCH] try two on branch one for better rpm / yum enabled handling --- inxi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inxi b/inxi index 138664d..54db5c2 100755 --- a/inxi +++ b/inxi @@ -3,7 +3,7 @@ #### Script Name: inxi #### version: 1.8.24 #### Date: December 6 2012 -#### Patch Number: 03-b1 +#### Patch Number: 04-b1 ######################################################################## #### SPECIAL THANKS ######################################################################## @@ -6075,14 +6075,14 @@ get_repo_data() urlData = $1 } # 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 } # 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 { if ( urlData != "" && enabledStatus != "" && repoTitle != "" ){ - if ( enabledStatus !~ /enabled=0/ ){ + if ( enabledStatus !~ /enabled[[:space:]]*=[[:space:]]*0/ ){ print_line( repoFile, repoTitle, urlData ) } enabledStatus=""