(arr []T, match T)
| 643 | // number. |
| 644 | func pkgRel(version string) string { |
| 645 | return version[strings.LastIndex(version, "-")+1:] |
| 646 | } |
| 647 | |
| 648 | // splitPkgRel reads the build number off a pkgrel using the same rule as |
| 649 | // upstreamVersion, the last dot-separated component. Upstream pkgrels carry a |
| 650 | // dot of their own often enough that the trailing component cannot be assumed to |
| 651 | // be ours. A pkgrel without one reports 0, below every number increasePkgRel |
| 652 | // hands out. |
| 653 | func splitPkgRel(pkgrel string) (base string, buildNo int, err error) { |
| 654 | dot := strings.LastIndex(pkgrel, ".") |
| 655 | if dot < 0 { |
| 656 | return pkgrel, 0, nil |
no outgoing calls
no test coverage detected