diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2002-08-08 23:42:10 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2002-08-08 23:42:10 +0000 |
commit | 22daf110fbe463a4c9f5a7309e1309bdefed5ccb (patch) | |
tree | 53c0df78b873f0ed47e11d1aa9039923f15c10ed /perl-install/services.pm | |
parent | 3467af25441cc4cf1510cf925f9916f64d43f50e (diff) | |
download | drakx-backup-do-not-use-22daf110fbe463a4c9f5a7309e1309bdefed5ccb.tar drakx-backup-do-not-use-22daf110fbe463a4c9f5a7309e1309bdefed5ccb.tar.gz drakx-backup-do-not-use-22daf110fbe463a4c9f5a7309e1309bdefed5ccb.tar.bz2 drakx-backup-do-not-use-22daf110fbe463a4c9f5a7309e1309bdefed5ccb.tar.xz drakx-backup-do-not-use-22daf110fbe463a4c9f5a7309e1309bdefed5ccb.zip |
(services): better sorting of services
Diffstat (limited to 'perl-install/services.pm')
-rw-r--r-- | perl-install/services.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/services.pm b/perl-install/services.pm index 3c06859be..44baca620 100644 --- a/perl-install/services.pm +++ b/perl-install/services.pm @@ -282,7 +282,7 @@ sub services { my ($prefix) = @_; local $ENV{LANGUAGE} = 'C'; my @raw_l = run_program::rooted_get_stdout($prefix, '/sbin/chkconfig', '--list'); - my @l = map { [ /([^\s:]+)/, /\bon\b/ ] } grep { !/:$/ } sort @raw_l; + my @l = sort { $a->[0] cmp $b->[0] } map { [ /([^\s:]+)/, /\bon\b/ ] } grep { !/:$/ } @raw_l; [ map { $_->[0] } @l ], [ map { $_->[0] } grep { $_->[1] } @l ]; } |