summaryrefslogtreecommitdiffstats
path: root/lib/private/Installer.php
Commit message (Collapse)AuthorAgeFilesLines
* phpsec lib can't parse multiple certs in one goRoeland Jago Douma2021-01-201-2/+20
| | | | | | So we have to split it manually and do it ourselves Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Allow installing/updating of apps againRoeland Jago Douma2021-01-121-1/+1
| | | | | | The Guzzle API changed. We shall now use sink Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Bump doctrine/dbal from 2.12.0 to 3.0.0Christoph Wurst2021-01-081-2/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #24062 from ↵Morris Jobke2020-11-201-2/+2
|\ | | | | | | | | nextcloud/revert-24060-revert-24039-faster-installation Revert "Revert "Installation goes brrrr""
| * Revert "Revert "Installation goes brrrr""Joas Schilling2020-11-111-2/+2
| |
* | Allow lazy app registrationChristoph Wurst2020-11-181-0/+4
|/ | | | | | | | During app installation we run migration steps. Those steps may use services the app registers or classes from composer. Hence we have to make sure the app runs through the registration. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Revert "Installation goes brrrr"Christoph Wurst2020-11-111-2/+2
|
* Only update the schema when we install anywayJoas Schilling2020-11-111-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add more details if extract fails.Daniel Kesselberg2020-10-221-6/+8
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-6/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Allow to update to nightlyJohn Molakvoæ (skjnldsv)2020-08-071-7/+10
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-37/+36
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove trailing and in between spacesChristoph Wurst2020-04-091-7/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* disable timeout on app install via cliArthur Schiwon2020-02-121-6/+13
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Increase the timeout for app downloadsJoas Schilling2020-01-201-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow to force enable apps via CLIJoas Schilling2019-12-131-2/+3
| | | | | | Co-authored-by: Christoph Wurst <christoph@winzerhof-wurst.at> Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-2/+6
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Run repair steps when enabling an app that has already been installedJulius Härtl2019-06-051-0/+8
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Check if elements are set in installerRoeland Jago Douma2019-03-221-0/+4
| | | | | | | Since we now have all the apps from the appstore we need to do a bit more checking. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* allow enforcing apps to ignore the max versionRoeland Jago Douma2019-03-201-2/+5
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* There is no update available if the app didnt have a version (aka was not ↵Joas Schilling2018-08-021-1/+1
| | | | | | installed) Signed-off-by: Joas Schilling <coding@schilljs.com>
* move log constants to ILoggerArthur Schiwon2018-04-261-2/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Remove a check for an unused variableMorris Jobke2018-04-231-3/+1
| | | | | | | | Left over from a refactoring https://github.com/nextcloud/server/pull/1940 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use isInstalled of AppManger instead of reimplement itMorris Jobke2018-03-211-15/+6
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Dont use $info as array when its not an arrayJoas Schilling2018-02-221-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix app version to be always string and neither array nor nullMorris Jobke2018-02-171-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unused import statementsMorris Jobke2018-02-141-5/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove OC_App::removeAppJulius Härtl2018-01-311-0/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Do not cache the settings/sections in the database anymoreJoas Schilling2018-01-291-9/+0
| | | | | | | This caused more troubles then it had benefits, especially when an app got disabled or was removed without being disabled. Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove unneeded semicolon and parenthesesMorris Jobke2018-01-261-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use index based string access for substr with length of 1Morris Jobke2018-01-261-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Properly log the full exception instead of only the messageMorris Jobke2018-01-231-1/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove IAppConfig::getValueRoeland Jago Douma2018-01-171-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #7505 from nextcloud/do-not-update-if-app-comes-from-gitMorris Jobke2017-12-181-0/+20
|\ | | | | Do not update apps if it comes from git
| * Up checkJohn Molakvoæ (skjnldsv)2017-12-141-4/+4
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * Do not update apps if it comes from gitJohn Molakvoæ (skjnldsv)2017-12-141-0/+20
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | Use cached app listMorris Jobke2017-12-141-2/+2
|/ | | | | | Followup to #7264 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #7264 from nextcloud/cache-fetched-appsLukas Reschke2017-11-271-11/+14
|\ | | | | Cache fetched apps in update check
| * Make isUpdateAvailable non-staticMorris Jobke2017-11-251-13/+12
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * Cache fetched apps in update checkMorris Jobke2017-11-251-1/+5
| | | | | | | | | | | | The code tried to find the apps with updates and thus was called for every available app. This caused to get the full appstore content as often as apps are available. The appstore request itself was cached nevertheless in an appdata dir, but with an object storage this is still a lot of round trips to read this cached result. Thus the instantiated list is now cached in a static variable (because it's a static method call). Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Remove unused checkCode methodMorris Jobke2017-11-241-17/+0
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #6788 from staabm/masterLukas Reschke2017-11-081-1/+1
|\ | | | | Prevent XSS in links which open a new browser window
| * Prevent XSS in links which open a new browser windowMarkus Staab2017-10-191-1/+1
| |
* | Run updated license header updaterMorris Jobke2017-11-071-1/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Change @georgehrke's emailMorris Jobke2017-11-061-1/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Update license headersMorris Jobke2017-11-061-7/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Check whether an app archive can be extractedChristoph Wurst2017-09-201-1/+8
| | | | | | | | If extraction fails we should not continue the installation/update process as the info.xml cannot be loaded and an unrelated error occurs. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Register autoloading before running migrationsJoas Schilling2017-07-071-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Register autoloading before running migrationsJoas Schilling2017-07-051-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>