Package index may not be indexed when schanning.

This commit is contained in:
Andrey Smirnov
2014-07-12 18:02:13 +04:00
parent d523d2b415
commit 34f545b8cf
+1 -1
View File
@@ -335,7 +335,7 @@ func (l *PackageList) PrepareIndex() {
// Scan searches package index using full scan
func (l *PackageList) Scan(q PackageQuery) (result *PackageList) {
result = NewPackageList()
for _, pkg := range l.packagesIndex {
for _, pkg := range l.packages {
if q.Matches(pkg) {
result.Add(pkg)
}