mirror of
https://github.com/Jguer/yay.git
synced 2026-04-08 07:11:13 +02:00
Replace vote-only sigmoid with a blended votes+popularity score in aurSortByMetric. AUR's Popularity field (already stored and populated from the API) is a time-decayed vote score that better reflects current relevance than raw NumVotes alone. Falls back to votes-only when popularity <= 0 (brand-new packages). Uses the same sigmoid normalization pattern as the existing minVotes constant (minPopularity = 0.5). Side effect: AUR packages no longer artificially outscore repo packages via historical vote counts when separateSources is disabled. Updated two noseparatesources test expectations accordingly.