CVS commit onlyservice
Mike Tremaine <[email protected]>
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
Applied this patch to consolidate regex's and allow for extra space
which is a patch in the fedora/redhat tree.
[mgt@dwarfstar shared]$ cvs diff onlyservice
Index: onlyservice
===================================================================
RCS file: /var/cvs/logwatch/scripts/shared/onlyservice,v
retrieving revision 1.10
diff -r1.10 onlyservice
31c31
< if ($ThisLine =~ m/^... .. ..:..:.. [^ ]*
$ServiceName\[[0123456789]*\]: /io) {
---
> if ($ThisLine =~ m/^... .. ..:..:..[ ]*[^ ]*
$ServiceName(\[[0123456789]*\])?:? /io) {
34,43c34
< elsif ($ThisLine =~ m/^... .. ..:..:.. [^ ]* [^
]*\[[0123456789]*\]: \[ID [0-9]+ $ServiceName/io) {
< print $ThisLine;
< }
< elsif ($ThisLine =~ m/^... .. ..:..:.. [^ ]* [^ ]*: \[ID [0-9]+
$ServiceName/io) {
< print $ThisLine;
< }
< elsif ($ThisLine =~ m/^... .. ..:..:.. [^ ]* $ServiceName: /io) {
< print $ThisLine;
< }
< elsif ($ThisLine =~ m/^... .. ..:..:.. [^ ]* $ServiceName /io) {
---
> elsif ($ThisLine =~ m/^... .. ..:..:.. [^ ]* [^
]*(\[[0123456789]*\])?: \[ID [0-9]+ $ServiceName/io) {