add patch to allow updates across multiple versions

This commit is contained in:
Christopher Engelhard 2020-11-10 11:01:35 +01:00
parent a88ee0f5d8
commit 0d336cb8f8
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,20 @@
diff -Naur a/lib/private/Updater.php b/lib/private/Updater.php
--- a/lib/private/Updater.php 2020-10-24 10:37:44.000000000 +0200
+++ b/lib/private/Updater.php 2020-11-10 10:51:10.511861549 +0100
@@ -197,14 +197,11 @@
}
if ($currentVendor === 'nextcloud') {
- return isset($allowedPreviousVersions[$currentVendor][$majorMinor])
- && (version_compare($oldVersion, $newVersion, '<=') ||
- $this->config->getSystemValue('debug', false));
+ return true;
}
// Check if the instance can be migrated
- return isset($allowedPreviousVersions[$currentVendor][$majorMinor]) ||
- isset($allowedPreviousVersions[$currentVendor][$oldVersion]);
+ return true;
}
/**

View File

@ -37,6 +37,10 @@ Source8: %{name}-fedora-autoloader.php
Source10: %{name}-systemd-timer.service
Source11: %{name}-systemd-timer.timer
# Remove updater version check, we know that updates across more than one
# version are possible
Patch00: 0000-disable-update-version-check.patch
BuildArch: noarch
# For the systemd macros