Skip to content

Commit

Permalink
debiman-piuparts-distill: increase maximum token size
Browse files Browse the repository at this point in the history
  • Loading branch information
stapelberg committed Aug 30, 2017
1 parent 6d096e2 commit 2325b7c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helpers/debiman-piuparts-distill/piuparts.go
Expand Up @@ -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: ") {
Expand Down

0 comments on commit 2325b7c

Please sign in to comment.