chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
51122dc
)
systemctl: don't show ln -s/rm output in 'install' mode if --quiet is passed
author
Lennart Poettering
<lennart@poettering.net>
Sat, 21 Jan 2012 02:44:11 +0000
(
03:44
+0100)
committer
Lennart Poettering
<lennart@poettering.net>
Sat, 21 Jan 2012 02:44:11 +0000
(
03:44
+0100)
src/systemctl.c
patch
|
blob
|
history
diff --git
a/src/systemctl.c
b/src/systemctl.c
index d7d7d67984cb997b3d0b7f3424fe818ad295e990..cb59fd6db2a35f750c969a426b5291c9583528ea 100644
(file)
--- a/
src/systemctl.c
+++ b/
src/systemctl.c
@@
-3688,11
+3688,13
@@
static int enable_unit(DBusConnection *bus, char **args) {
goto finish;
}
goto finish;
}
- for (i = 0; i < n_changes; i++) {
- if (changes[i].type == UNIT_FILE_SYMLINK)
- log_info("ln -s '%s' '%s'", changes[i].source, changes[i].path);
- else
- log_info("rm '%s'", changes[i].path);
+ if (!arg_quiet) {
+ for (i = 0; i < n_changes; i++) {
+ if (changes[i].type == UNIT_FILE_SYMLINK)
+ log_info("ln -s '%s' '%s'", changes[i].source, changes[i].path);
+ else
+ log_info("rm '%s'", changes[i].path);
+ }
}
} else {
}
} else {
@@
-3808,10
+3810,12
@@
static int enable_unit(DBusConnection *bus, char **args) {
goto finish;
}
goto finish;
}
- if (streq(type, "symlink"))
- log_info("ln -s '%s' '%s'", source, path);
- else
- log_info("rm '%s'", path);
+ if (!arg_quiet) {
+ if (streq(type, "symlink"))
+ log_info("ln -s '%s' '%s'", source, path);
+ else
+ log_info("rm '%s'", path);
+ }
dbus_message_iter_next(&sub);
}
dbus_message_iter_next(&sub);
}