mirror of
https://src.fedoraproject.org/rpms/nextcloud.git
synced 2025-01-25 09:45:50 +01:00
add patch to allow updates across multiple versions
This commit is contained in:
parent
a88ee0f5d8
commit
0d336cb8f8
20
0000-disable-update-version-check.patch
Normal file
20
0000-disable-update-version-check.patch
Normal 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;
|
||||
}
|
||||
|
||||
/**
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user