aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2009-04-07 10:38:07 -0400
committerBill Nottingham <notting@redhat.com>2009-04-07 10:38:07 -0400
commit957ae84d22fea61b2cd41d4bb3c497b3a4a6cadd (patch)
treed1f6651c5de6421bf307545f8a5211f1b5bd32a3
parentb18bb315ff81e892dd76e09e3726bdcba32ebc4c (diff)
downloadinitscripts-957ae84d22fea61b2cd41d4bb3c497b3a4a6cadd.tar
initscripts-957ae84d22fea61b2cd41d4bb3c497b3a4a6cadd.tar.gz
initscripts-957ae84d22fea61b2cd41d4bb3c497b3a4a6cadd.tar.bz2
initscripts-957ae84d22fea61b2cd41d4bb3c497b3a4a6cadd.tar.xz
initscripts-957ae84d22fea61b2cd41d4bb3c497b3a4a6cadd.zip
Sort RPM db query, for consistency. (#494461)
-rwxr-xr-xprefdm2
1 files changed, 1 insertions, 1 deletions
diff --git a/prefdm b/prefdm
index 10b679d5..a1586b55 100755
--- a/prefdm
+++ b/prefdm
@@ -35,7 +35,7 @@ shopt -s execfail
[ -n "$preferred" ] && exec $preferred "$@" >/dev/null 2>&1 </dev/null
-for pkg in $(rpm -q --qf "%{NAME}\n" --whatprovides "service(graphical-login)") ; do
+for pkg in $(LC_ALL=C rpm -q --qf "%{NAME}\n" --whatprovides "service(graphical-login)"| sort -u) ; do
dm=$(rpm -q --provides $pkg | awk '/^service\(graphical-login\)/ { print $3 ; exit }')
if [ -n "$dm" ]; then
exec $dm "$@" >/dev/null 2>&1 </dev/null