[Piuparts-commits] [piuparts] 03/04: debiman-piuparts-distill: increase maximum token size
Holger Levsen
holger at layer-acht.org
Wed Aug 30 16:18:15 UTC 2017
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch develop
in repository piuparts.
commit c72a197d79edccc64b33d5d894e88ef2ca56642a
Author: Michael Stapelberg <stapelberg at debian.org>
Date: Wed Aug 30 17:52:18 2017 +0200
debiman-piuparts-distill: increase maximum token size
Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
helpers/debiman-piuparts-distill/piuparts.go | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/helpers/debiman-piuparts-distill/piuparts.go b/helpers/debiman-piuparts-distill/piuparts.go
index 59aa582..498b564 100644
--- a/helpers/debiman-piuparts-distill/piuparts.go
+++ b/helpers/debiman-piuparts-distill/piuparts.go
@@ -53,6 +53,10 @@ func process(path string, links chan<- link) error {
defer f.Close()
scanner := bufio.NewScanner(f)
+ // Increase the maximum token size to 5 MB to handle logs such as
+ // apprecommender_0.7.5-2.log, which has a very long line of interactive
+ // xapian progress output.
+ scanner.Buffer(nil, 5*1024*1024)
for scanner.Scan() {
line := strings.TrimSpace(scanner.Text())
if !strings.HasPrefix(line, "LOG-ALTERNATIVES: ") {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git
More information about the Piuparts-commits
mailing list