Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support high-speed scanning for CentOS #138

Merged
merged 6 commits into from
Jul 27, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix golint errors of scan/redhat.go
  • Loading branch information
Masahiro Ono committed Jul 25, 2016
commit 4f0dbff05969f32ddcc8e3029dfbeb743b324719
5 changes: 2 additions & 3 deletions scan/redhat.go
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ func (o *redhat) parseAllChangelog(allChangelog string) (map[string]*string, err
tmpline := ""
var lines []string
var prev, now bool
for i, _ := range orglines {
for i := range orglines {
if majorVersion == 5 {
/* for CentOS5 (yum-util < 1.1.20) */
prev = false
Expand Down Expand Up @@ -577,9 +577,8 @@ func (o *redhat) parseAllChangelog(allChangelog string) (map[string]*string, err
stop, _ := regexp.MatchString("^Dependencies Resolved", line)
if stop {
return rpm2changelog, nil
} else {
*writePointer += fmt.Sprintf("%s\n", line)
}
*writePointer += fmt.Sprintf("%s\n", line)
}
}
return rpm2changelog, nil
Expand Down