Skip to content

Commit

Permalink
Enable both filters when checking for packages to store
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafael Dantas Justo committed Oct 19, 2015
1 parent 661ade6 commit 252fa8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gddoexp.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ func ShouldArchivePackage(p database.Package, db gddoDB, auth *GithubAuth) (arch
// we only archive the package if there's no reference to it from other
// projects (checked above) and if there's no updates in Github on the last
// 2 years
//return time.Now().Sub(repository.UpdatedAt) >= unused, cache, nil
if time.Now().Sub(repository.UpdatedAt) >= unused {
return true, cacheRepository, nil
}

// we will check if the package is a fork with a few commits for a pull
// request, if so we consider it a fast fork and is eligible to be archived
Expand Down

0 comments on commit 252fa8f

Please sign in to comment.