Remove skipped packages

With multiple sources, including cygwin, this doesn't make much sense.
We can mark some packages as internal in the future.
This commit is contained in:
Christoph Reiter
2022-12-29 06:49:39 +01:00
parent 57337c8051
commit 0aaa362d5a
3 changed files with 3 additions and 22 deletions

View File

@@ -76,11 +76,6 @@ def get_realname_variants(s: Source) -> List[str]:
return main + sorted(package_variants) + sorted(provides_variants)
def is_skipped(s: Source) -> bool:
mapping = state.external_mapping.mapping
return s.name in mapping and mapping[s.name] is None
def get_arch_info_for_base(s: Source) -> Optional[ExtInfo]:
global state

View File

@@ -8,8 +8,7 @@
<h6 class="card-subtitle mb-2 text-muted">
All packages: {{ all_sources|length }} |
Outdated packages: {{ to_update|length }} |
Missing version info: {{ missing|length }} |
Skipped: {{ skipped|length }}
Missing version info: {{ missing|length }}
</h6>
</div>
<div class="card-body overflow-auto">
@@ -69,13 +68,6 @@
<a href="{{ url_for('base', base_name=s.name) }}">{{ s.realname }}</a>{{ ", " if not loop.last else '' }}
{% endfor %}
<br>
<br>
<h6>{{ skipped|length }} packages skipped (Windows only etc.):</h6>
{% for s in skipped %}
<a href="{{ url_for('base', base_name=s.name) }}">{{ s.realname }}</a>{{ ", " if not loop.last else '' }}
{% endfor %}
<br>
<hr>
<form class="ms-auto row g-2 align-items-center" action="{{ url_for('outofdate') }}" method="get">

View File

@@ -20,7 +20,7 @@ from fastapi_etag import Etag
from fastapi.staticfiles import StaticFiles
from fastapi_etag import add_exception_handler as add_etag_exception_handler
from .appstate import state, get_repositories, Package, is_skipped, Source, DepType, SrcInfoPackage, get_base_group_name
from .appstate import state, get_repositories, Package, Source, DepType, SrcInfoPackage, get_base_group_name
from .appconfig import DEFAULT_REPO
from .utils import extract_upstream_version, version_is_newer_than
@@ -409,7 +409,6 @@ async def outofdate(request: Request, response: Response, related: Optional[str]
repos = get_repositories()
missing = []
skipped = []
to_update = []
all_sources = []
@@ -446,24 +445,19 @@ async def outofdate(request: Request, response: Response, related: Optional[str]
break
if not external_infos:
if is_skipped(s):
skipped.append(s)
else:
missing.append(s)
missing.append(s)
# show packages which have recently been build first.
# assumes high frequency update packages are more important
to_update.sort(key=lambda i: (i[-1], i[0].name), reverse=True)
missing.sort(key=lambda i: i.date, reverse=True)
skipped.sort(key=lambda i: i.name)
return templates.TemplateResponse("outofdate.html", {
"request": request,
"all_sources": all_sources,
"to_update": to_update,
"missing": missing,
"skipped": skipped,
"related": related or "",
"repos": repos,
"repo_filter": repo_filter,