summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2010-12-17 15:53:32 +0100
committerDieter Plaetinck <dieter@plaetinck.be>2010-12-17 15:53:32 +0100
commit27d2bfc7c8aa3eb187df5a7ac20236eac8e30952 (patch)
tree5d94d98f58e2e137fce776d17ae4740d6e908f74 /src
parent8853ea8aec3100109be847610b77dc73e5513631 (diff)
document output order for various pacman calls
Diffstat (limited to 'src')
-rw-r--r--src/core/libs/lib-pacman.sh3
1 files changed, 3 insertions, 0 deletions
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:
# <repo/group name> 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:
# <pkgname> <group>
+# 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 }'`