From 0753b203025928b7392ad4040528d3199f8dc057 Mon Sep 17 00:00:00 2001 From: "mauro.giachero" Date: Thu, 29 Jan 2009 14:36:18 +0000 Subject: [PATCH] Fix info_item $ARCH visualization This patch fixes most of the problems with $ARCH visualization in info_item. Signed-off-by: Mauro Giachero --- src/usr/bin/sbopkg | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/usr/bin/sbopkg b/src/usr/bin/sbopkg index 4393fce..4b9b3f5 100755 --- a/src/usr/bin/sbopkg +++ b/src/usr/bin/sbopkg @@ -638,7 +638,8 @@ info_item () { RVERSION=$(grep VERSION $SHORTPATH/$APP.info | cut -d= -f2 | sed s/\"//g) RARCH=$(egrep -m1 "^ARCH" $SHORTPATH/$APP.SlackBuild | - sed -e 's/^.*[=-]//;s/\"//;s/[ #}\t].*$//g;s/\"//g') + sed -e "s/\([^\t #]*\)[\t #].*/\1/;s/[^=]*=//;s/\${[^-]*-\(.*\)}/\1/;\ +s/\$.*/unknown/") RBUILD=$(egrep -m1 "^BUILD" $SHORTPATH/$APP.SlackBuild | sed -e 's/^.*[=-]//;s/\"//;s/[ #}\t].*$//g;s/\"//g') U="README"