Skip to content

Commit

Permalink
outofdate: fix total package number in case a repo filter is active
Browse files Browse the repository at this point in the history
only count packages for the active filter
  • Loading branch information
lazka committed Dec 14, 2024
1 parent d42899e commit 73aa5d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,9 @@ async def outofdate(request: Request, response: Response, related: str | None =
related_depends = get_transitive_depends(related_list)

for s in state.sources.values():
if repo_filter is not None and repo_filter not in s.repos:
continue

all_sources.append(s)

if "internal" in s.pkgextra.references:
Expand All @@ -480,9 +483,6 @@ async def outofdate(request: Request, response: Response, related: str | None =
else:
continue

if repo_filter is not None and repo_filter not in s.repos:
continue

msys_version = extract_upstream_version(s.version)
git_version = extract_upstream_version(s.git_version)
if not version_is_newer_than(git_version, msys_version):
Expand Down

0 comments on commit 73aa5d6

Please sign in to comment.