public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-misc/mtail/files/
@ 2016-09-12  6:28 Patrice Clement
  0 siblings, 0 replies; only message in thread
From: Patrice Clement @ 2016-09-12  6:28 UTC (permalink / raw
  To: gentoo-commits

commit:     3278029306e5631e82458dfee30e74aa42432b00
Author:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 12 06:28:13 2016 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Mon Sep 12 06:28:13 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32780293

app-misc/mtail: Add back missing patch.

Gentoo-Bug: https://bugs.gentoo.org/593330

Package-Manager: portage-2.2.28

 .../mtail/files/mtail-1.1.1-remove-blanks.patch    | 52 ++++++++++++++++++++++
 1 file changed, 52 insertions(+)

diff --git a/app-misc/mtail/files/mtail-1.1.1-remove-blanks.patch b/app-misc/mtail/files/mtail-1.1.1-remove-blanks.patch
new file mode 100644
index 00000000..9645e26
--- /dev/null
+++ b/app-misc/mtail/files/mtail-1.1.1-remove-blanks.patch
@@ -0,0 +1,52 @@
+--- mtail.orig	2003-11-07 19:02:34.000000000 +0000
++++ mtail	2003-11-07 19:19:18.000000000 +0000
+@@ -46,6 +46,7 @@
+ verbose = 0
+ silent = 0
+ active = 0
++remove_blanks = 0
+ 
+ # sets up the interrupt handler, calls processargs(), sets up and starts the
+ # tailers.
+@@ -119,6 +120,8 @@
+             if line[len(line)-1] == '\n':
+                 line = line[:len(line)-1]
+             line = filter(line)
++            if remove_blanks and not line:
++                continue
+             lock.acquire()
+             try:
+                 if (multiple or verbose) and (not silent) \
+@@ -138,12 +141,14 @@
+     global verbose
+     global silent
+     global config_file
++    global remove_blanks
+     filenames = []
+     lines = None
+     follow = 0
+     try:
+         opts, pargs = getopt.getopt(sys.argv[1:], 'fn:?hvq', ["follow",
+-            "lines=", "help", "verbose", "quiet", "silent", "config="])
++            "lines=", "help", "verbose", "quiet", "silent", "config=",
++            "remove-blanks"])
+     except getopt.error:
+         print 'unrecognized option!'
+         print
+@@ -163,6 +168,8 @@
+             silent = 1
+         elif opt[0] in ['--config']:
+             config_file = opt[1]
++        elif opt[0] in ['--remove-blanks']:
++            remove_blanks = 1
+     if lines == None:
+         lines = 10
+     for filename in pargs:
+@@ -186,6 +193,7 @@
+     print '      -v, --verbose          always output headers giving file names'
+     print '      -q, --quiet, --silent  never output headers giving file names'
+     print '      --config=FILE          use config file FILE instead of ~/.mtailrc'
++    print '      --remove-blanks        do not display blank lines'
+     print
+     print 'with more than one filename, mtail will precede each chunk from'
+     print 'each with a header giving the file name. if no filenames are given'


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-09-12  6:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-12  6:28 [gentoo-commits] repo/gentoo:master commit in: app-misc/mtail/files/ Patrice Clement

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox