From 27d2bfc7c8aa3eb187df5a7ac20236eac8e30952 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Fri, 17 Dec 2010 15:53:32 +0100 Subject: document output order for various pacman calls --- src/core/libs/lib-pacman.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/core') diff --git a/src/core/libs/lib-pacman.sh b/src/core/libs/lib-pacman.sh index 21c944c..474f551 100644 --- a/src/core/libs/lib-pacman.sh +++ b/src/core/libs/lib-pacman.sh @@ -118,6 +118,7 @@ ${3} EOF } +# not sorted list_package_groups () { $PACMAN_TARGET -Sg @@ -126,6 +127,7 @@ list_package_groups () # List the packages in one or more repos or groups. output is one or more lines, each line being like this: # packagename [version, if $1=repo] +# lines are sorted by packagename # $1 repo or group # $2 one or more repo or group names list_packages () @@ -139,6 +141,7 @@ list_packages () # $1 packages separated by spaces # output format: multiple lines, each line like: # +# order is the same as the input which_group () { PACKAGE_GROUPS=`LANG=C $PACMAN_TARGET -Si $1| awk '/^Name/{ printf("%s ",$3) } /^Group/{ print $3 }'` -- cgit v1.2.3-54-g00ecf