SHA256
1
0
forked from pool/matomo
matomo/matomo-package_update.patch
Eric Schirra 8e1d0fbe23 Accepting request 850578 from home:ecsos:server
- Update to 4.0.0
  Too many changes to list here. See instead:
  https://github.com/matomo-org/matomo/releases/tag/4.0.0
- Fix boo#1162178:
  Add matomo-package_update.patch to not show warning message when
  auto_update_enable es disable through package installation.

OBS-URL: https://build.opensuse.org/request/show/850578
OBS-URL: https://build.opensuse.org/package/show/network:utilities/matomo?expand=0&rev=81
2020-11-24 17:16:32 +00:00

16 lines
878 B
Diff

diff -Pdpru matomo.orig/plugins/CoreUpdater/Commands/Update.php matomo/plugins/CoreUpdater/Commands/Update.php
--- matomo.orig/plugins/CoreUpdater/Commands/Update.php 2020-11-23 20:20:18.000000000 +0100
+++ matomo/plugins/CoreUpdater/Commands/Update.php 2020-11-24 14:16:58.087597130 +0100
@@ -70,7 +70,11 @@ class Update extends ConsoleCommand
$this->writeSuccessMessage($output, array(Piwik::translate('CoreUpdater_DbUpgradeNotExecuted')));
}
+ // Only show if autoupdate is enabled. Don't show if update through distribution package update.
+ $enableAutoUpdate = (bool) Config::getInstance()->General['enable_auto_update'];
+ if ($enableAutoUpdate === true){
$this->writeAlertMessageWhenCommandExecutedWithUnexpectedUser($output);
+ }
} catch(NoUpdatesFoundException $e) {