Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
c8e0f301
Unverified
Commit
c8e0f301
authored
4 years ago
by
Joas Schilling
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #24398 from nextcloud/fix/do-not-update-incompatible-app
Do not update incompatible apps
parents
6f835463
cbb34af5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/private/Updater.php
+1
-1
1 addition, 1 deletion
lib/private/Updater.php
lib/private/legacy/OC_App.php
+9
-0
9 additions, 0 deletions
lib/private/legacy/OC_App.php
with
10 additions
and
1 deletion
lib/private/Updater.php
+
1
−
1
View file @
c8e0f301
...
...
@@ -360,7 +360,7 @@ class Updater extends BasicEmitter {
$disabledApps
=
[];
$appManager
=
\OC
::
$server
->
getAppManager
();
foreach
(
$apps
as
$app
)
{
// check if the app is compatible with this version of
ownC
loud
// check if the app is compatible with this version of
Nextc
loud
$info
=
OC_App
::
getAppInfo
(
$app
);
if
(
$info
===
null
||
!
OC_App
::
isAppCompatible
(
$version
,
$info
))
{
if
(
$appManager
->
isShipped
(
$app
))
{
...
...
This diff is collapsed.
Click to expand it.
lib/private/legacy/OC_App.php
+
9
−
0
View file @
c8e0f301
...
...
@@ -974,6 +974,15 @@ class OC_App {
\OC
::
$server
->
getAppManager
()
->
clearAppsCache
();
$appData
=
self
::
getAppInfo
(
$appId
);
$ignoreMaxApps
=
\OC
::
$server
->
getConfig
()
->
getSystemValue
(
'app_install_overwrite'
,
[]);
$ignoreMax
=
in_array
(
$appId
,
$ignoreMaxApps
,
true
);
\OC_App
::
checkAppDependencies
(
\OC
::
$server
->
getConfig
(),
\OC
::
$server
->
getL10N
(
'core'
),
$appData
,
$ignoreMax
);
self
::
registerAutoloading
(
$appId
,
$appPath
,
true
);
self
::
executeRepairSteps
(
$appId
,
$appData
[
'repair-steps'
][
'pre-migration'
]);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment