Merge pull request #672 from sbwalker/master

allow user to reinstall current version
This commit is contained in:
Shaun Walker 2020-08-06 13:48:07 -07:00 committed by GitHub
commit c0e8d09ce1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,8 +181,8 @@ namespace Oqtane.Infrastructure
}
}
// ensure package version is higher than current framework version
if (packageversion != "" && Version.Parse(Constants.Version).CompareTo(Version.Parse(packageversion)) < 0)
// ensure package version is greater than or equal to current framework version
if (packageversion != "" && Version.Parse(Constants.Version).CompareTo(Version.Parse(packageversion)) <= 0)
{
FinishUpgrade();
}