Fix version comparison with minor and patch level requirements
If an app requires a specific minor or path level server version,
the version_compare prevented the installation as only the major
version had been compared and that checks obviously returns `false`.
Now the full version is used for comparison, making it possible to
release apps for a specific minor or patch level version of Nextcloud.
Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
Showing
- lib/private/App/AppStore/Fetcher/AppFetcher.php 15 additions, 8 deletionslib/private/App/AppStore/Fetcher/AppFetcher.php
- lib/private/App/CompareVersion.php 97 additions, 0 deletionslib/private/App/CompareVersion.php
- tests/lib/App/AppStore/Fetcher/AppFetcherTest.php 12 additions, 6 deletionstests/lib/App/AppStore/Fetcher/AppFetcherTest.php
- tests/lib/App/CompareVersionTest.php 91 additions, 0 deletionstests/lib/App/CompareVersionTest.php
Loading
Please register or sign in to comment