nextcloud/0000-disable-update-version-check.patch
2025-10-25 15:31:28 -05:00

19 lines
663 B
Diff

--- a/lib/private/Updater.php 2025-10-23 13:34:14.000000000 -0500
+++ b/lib/private/Updater.new.php 2025-10-25 15:04:23.345653512 -0500
@@ -174,10 +174,13 @@
$this->config->setAppValue('core', 'vendor', $currentVendor);
}
+ /*
+ Fedora package:
+ Remove updater version check, we know that updates across more than one
+ version are possible
+ */
if ($currentVendor === 'nextcloud') {
- return isset($allowedPreviousVersions[$currentVendor][$majorMinor])
- && (version_compare($oldVersion, $newVersion, '<=')
- || $this->config->getSystemValueBool('debug', false));
+ return true;
}
// Check if the instance can be migrated