diff options
author | Guillaume Cottenceau <gc@mandriva.com> | 2001-03-06 23:30:58 +0000 |
---|---|---|
committer | Guillaume Cottenceau <gc@mandriva.com> | 2001-03-06 23:30:58 +0000 |
commit | 54c3961e4267fa1ad62d537990262730105f726e (patch) | |
tree | 90d55b64ce30952a3b0ce8a902800f9dd3afc993 | |
parent | 328777b82443da8e914fc0fdd7c9164748685fcb (diff) | |
download | drakx-54c3961e4267fa1ad62d537990262730105f726e.tar drakx-54c3961e4267fa1ad62d537990262730105f726e.tar.gz drakx-54c3961e4267fa1ad62d537990262730105f726e.tar.bz2 drakx-54c3961e4267fa1ad62d537990262730105f726e.tar.xz drakx-54c3961e4267fa1ad62d537990262730105f726e.zip |
do not display from syslog msg's from RPM telling that it
installed/removed some pkg's
-rw-r--r-- | mdk-stage1/init.c | 9 |
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); |