Only show an outdated banner if the git version is too old
And not the version in the repo. If the new version is in git, there is usually nothing to do, except waiting for it to reach the repo.
This commit is contained in:
parent
da40892968
commit
fd3925efa0
@ -593,10 +593,10 @@ class Source:
|
||||
return sorted(ext)
|
||||
|
||||
@property
|
||||
def is_outdated(self) -> bool:
|
||||
def is_outdated_in_git(self) -> bool:
|
||||
if self.upstream_version is None:
|
||||
return False
|
||||
msys_version = extract_upstream_version(self.version)
|
||||
msys_version = extract_upstream_version(self.git_version)
|
||||
return version_is_newer_than(self.upstream_version, msys_version)
|
||||
|
||||
@property
|
||||
|
||||
@ -25,7 +25,7 @@
|
||||
</div>
|
||||
<div class="card-body overflow-auto">
|
||||
|
||||
{% if s.is_outdated %}
|
||||
{% if s.is_outdated_in_git %}
|
||||
<small><div class="alert alert-secondary" role="alert">
|
||||
A <strong>newer upstream version ({{ s.upstream_version }})</strong>
|
||||
is available.<br>Consider packaging the new version for
|
||||
|
||||
@ -34,7 +34,7 @@
|
||||
<tr>
|
||||
<td><a href="{{ url_for('base', base_name=s.name) }}">{{ s.name }}</a></td>
|
||||
<td>{{ s.version }}</td>
|
||||
<td>{{ s.upstream_version if s.is_outdated else '' }}</td>
|
||||
<td>{{ s.upstream_version if s.is_outdated_in_git else '' }}</td>
|
||||
<td class="mytooltip-onclick">
|
||||
<span role="button" class="text-{{vulnerability_color(s.worst_active_vulnerability)}}">⚠</span>
|
||||
<template class="mytooltip-content">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user