From da17522bc7da9309dd16a0352eafb069d475d3ea Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Thu, 25 Sep 2014 06:55:20 +0000 Subject: [PATCH] rpm bug fix, no new version, new tarball. --- inxi | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/inxi b/inxi index 0ca4762..026cd71 100755 --- a/inxi +++ b/inxi @@ -4819,12 +4819,15 @@ get_de_gtk_data() # Name : libgtk-3-0 # Version : 3.12.2 elif type -p rpm &>/dev/null;then - toolkit=$( rpm -qi libgtk-3-0 2>/dev/null | gawk -F ':' '/^[[:space:]]*Version/ {print $3}' ) + toolkit=$( rpm -qi libgtk-3-0 2>/dev/null | gawk -F ':' '/^[[:space:]]*Version/ + {gsub(/^[[:space:]]+|[[:space:]]+$/,"",$2);print $2}' ) if [[ -z $toolkit ]];then - toolkit=$( rpm -qi libgtk-4-0 2>/dev/null | gawk -F ':' '/^[[:space:]]*Version/ {print $3}' ) + toolkit=$( rpm -qi libgtk-4-0 2>/dev/null | gawk -F ':' '/^[[:space:]]*Version/ + {gsub(/^[[:space:]]+|[[:space:]]+$/,"",$2);print $2}' ) fi if [[ -z $toolkit ]];then - toolkit=$( rpm -qi libgtk-2-0 2>/dev/null | gawk -F ':' '/^[[:space:]]*Version/ {print $3}' ) + toolkit=$( rpm -qi libgtk-2-0 2>/dev/null | gawk -F ':' '/^[[:space:]]*Version/ + {gsub(/^[[:space:]]+|[[:space:]]+$/,"",$2);print $2}' ) fi fi fi