summaryrefslogtreecommitdiffstats
path: root/mdk-stage1
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1')
-rw-r--r--mdk-stage1/init.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/mdk-stage1/init.c b/mdk-stage1/init.c
index 6d81c7e47..43232b56d 100644
--- a/mdk-stage1/init.c
+++ b/mdk-stage1/init.c
@@ -195,9 +195,12 @@ void doklog()
if (FD_ISSET(readfd, &readset) && FD_ISSET(readfd, &unixs)) {
i = read(readfd, buf, sizeof(buf));
if (i > 0) {
- if (out >= 0)
- write(out, buf, i);
- write(log, buf, i);
+ /* grep out the output of RPM telling that it installed/removed some packages */
+ if (!strstr(buf, "mdk installed") && !strstr(buf, "mdk removed")) {
+ if (out >= 0)
+ write(out, buf, i);
+ write(log, buf, i);
+ }
} else if (i == 0) {
/* socket closed */
close(readfd);