From 0effcb56236a9b42223f7489d2d363539e694145 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Sat, 18 Dec 2010 21:07:21 +0100 Subject: make package extra info also contain package version --- src/core/libs/lib-pacman.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/libs/lib-pacman.sh') diff --git a/src/core/libs/lib-pacman.sh b/src/core/libs/lib-pacman.sh index 2ce8706..2b1220e 100644 --- a/src/core/libs/lib-pacman.sh +++ b/src/core/libs/lib-pacman.sh @@ -150,10 +150,10 @@ which_group () # get group and packagedesc for packages # arguments: packages # output format: multiple lines, each line like: -# +# # order is the same as the input # note that space is used as separator, but desc is the only thing that will contain spaces. pkginfo () { - PACKAGE_INFO=`LANG=C $PACMAN_TARGET -Si "$@" | awk '/^Name/{ printf("%s ",$3) } /^Group/{ printf("%s", $3) } /^Description/{ for(i=3;i<=NF;++i) printf(" %s",$i); printf ("\n")}'` + PACKAGE_INFO=`LANG=C $PACMAN_TARGET -Si "$@" | awk '/^Name/{ printf("%s ",$3) } /^Version/{ printf("%s ",$3) } /^Group/{ printf("%s", $3) } /^Description/{ for(i=3;i<=NF;++i) printf(" %s",$i); printf ("\n")}'` } -- cgit v1.2.3-54-g00ecf