Greetings! I am using: RHL7.3 yum-1.0.3-1_73 rpm-4.0.4-7x.18 I have 'yum-arch -q [directory]' in a couple cron jobs and I was wondering if there is an option to leave out the 'ignoring...' and 'Already...' messages in STDERR when '-q' is in effect. The reason for this is that I want to get messages like 'yum has exploded', but not for 'yum saw X, but will keep doing what you want'. I tried 'yum-arch -q [directory] > /dev/null' and I still got informational messages. I did 'yum-arch -q [directory] > /dev/null 2>&1' but that throws away everything. I am sorry if this has already been discussed/decided/put-to-bed. I have include a patch, and it does what I want, but I am not a python programmer, so please forgive the ugliness. Thanks for reading, Troy Johnson -------------- next part -------------- diff -Pru yum-1.0.3.dist/pullheaders.py yum-1.0.3.mod/pullheaders.py --- yum-1.0.3.dist/pullheaders.py Mon Sep 8 22:13:37 2003 +++ yum-1.0.3.mod/pullheaders.py Tue Dec 30 15:50:08 2003 @@ -67,7 +67,8 @@ rpmtup = (name,arch) # do we already have this name.arch tuple in the dict? if rpminfo.has_key(rpmtup): - log(2,"Already found tuple: %s %s " % (name, arch)) + if not cmds['quiet']: + log(2,"Already found tuple: %s %s " % (name, arch)) (e1, v1, r1, l1) = rpminfo[rpmtup] oldhdrfile = "%s/%s-%s-%s-%s.%s.hdr" % (headerdir, name, e1, v1, r1, arch) # which one is newer? @@ -98,7 +99,7 @@ headerloc = serverStuff.writeHeader(headerdir,shortheader, cmds['compress']) rpminfo[rpmtup]=(epoch,ver,rel,rpmloc) goodrpm = goodrpm + 1 - else: + elif not cmds['quiet']: if header == 'source': log(2,"\nignoring srpm: %s" % rpmfn) elif header == 'bad': diff -Pru yum-1.0.3.dist/serverStuff.py yum-1.0.3.mod/serverStuff.py --- yum-1.0.3.dist/serverStuff.py Mon Sep 8 22:13:37 2003 +++ yum-1.0.3.mod/serverStuff.py Tue Dec 30 15:50:08 2003 @@ -174,7 +174,7 @@ if type(h) != types.StringType: ts.add(h, h[rpm.RPMTAG_NAME], 'i') log("adding %s" % h[rpm.RPMTAG_NAME]) - else: + elif not cmds['quiet']: if h == 'bad': log(2, '\nignoring bad rpm: %s' % rpmfn) elif h == 'source':