Force github plugins re-update due to compatibility reasons

This commit is contained in:
Łukasz Domeradzki 2024-09-19 16:43:26 +02:00
parent dca2e6f060
commit 2c0e14fb55
No known key found for this signature in database
GPG key ID: 6B138B4C64555AEA

View file

@ -174,10 +174,13 @@ public interface IGitHubPluginUpdates : IPluginUpdates {
Version newVersion = new(releaseResponse.Tag);
if (!forced && (Version >= newVersion)) {
// Allow same version to be re-updated when we're updating ASF release and more than one asset is found - potential compatibility difference
if ((Version > newVersion) || !asfUpdate || (releaseResponse.Assets.Count(static asset => asset.Name.EndsWith(".zip", StringComparison.OrdinalIgnoreCase)) < 2)) {
ASF.ArchiLogger.LogGenericInfo(Strings.FormatPluginUpdateNotFound(Name, Version, newVersion));
return null;
}
}
if (releaseResponse.Assets.Count == 0) {
ASF.ArchiLogger.LogGenericWarning(Strings.FormatPluginUpdateNoAssetFound(Name, Version, newVersion));