Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/
Date: Sat, 28 May 2011 16:12:59
Message-Id: 11d8b70d74b339777c7849dc3688244e85587501.vapier@gentoo
1 commit: 11d8b70d74b339777c7849dc3688244e85587501
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 28 16:11:37 2011 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Sat May 28 16:11:37 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=11d8b70d
7
8 rc-update: sort "show" output
9
10 X-Gentoo-Bug: 367305
11 X-Gentoo-Bug-URL: http://bugs.gentoo.org/367305
12 Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>
13
14 ---
15 src/rc/rc-update.c | 2 ++
16 1 files changed, 2 insertions(+), 0 deletions(-)
17
18 diff --git a/src/rc/rc-update.c b/src/rc/rc-update.c
19 index 5517c69..40dfb50 100644
20 --- a/src/rc/rc-update.c
21 +++ b/src/rc/rc-update.c
22 @@ -164,6 +164,7 @@ show(RC_STRINGLIST *runlevels, bool verbose)
23 char buffer[PATH_MAX];
24 size_t l;
25
26 + rc_stringlist_sort(&services);
27 TAILQ_FOREACH(service, services, entries) {
28 in = rc_stringlist_new();
29 inone = false;
30 @@ -299,6 +300,7 @@ rc_update(int argc, char **argv)
31 runlevels = rc_runlevel_list();
32 }
33
34 + rc_stringlist_sort(&runlevels);
35 show (runlevels, verbose);
36 } else {
37 if (!service)