upgrades core to 8.4.2
This commit is contained in:
@@ -11,6 +11,7 @@ source:
|
||||
- update_notification_threshold
|
||||
- update_notify_emails
|
||||
- update_check_frequency
|
||||
source_module: update
|
||||
process:
|
||||
'fetch/max_attempts': update_max_fetch_attempts
|
||||
'fetch/url': update_fetch_url
|
||||
|
||||
@@ -93,7 +93,7 @@ class UpdateManagerInstall extends FormBase {
|
||||
$form['project_url'] = [
|
||||
'#type' => 'url',
|
||||
'#title' => $this->t('Install from a URL'),
|
||||
'#description' => $this->t('For example: %url', ['%url' => 'http://ftp.drupal.org/files/projects/name.tar.gz']),
|
||||
'#description' => $this->t('For example: %url', ['%url' => 'https://ftp.drupal.org/files/projects/name.tar.gz']),
|
||||
];
|
||||
|
||||
$form['information'] = [
|
||||
|
||||
@@ -69,7 +69,7 @@ class UpdateManagerUpdate extends FormBase {
|
||||
'#last' => $this->state->get('update.last_check') ?: 0,
|
||||
];
|
||||
$form['last_check'] = [
|
||||
'#markup' => drupal_render($last_markup),
|
||||
'#markup' => \Drupal::service('renderer')->render($last_markup),
|
||||
];
|
||||
|
||||
if (!_update_manager_check_backends($form, 'update')) {
|
||||
@@ -181,10 +181,12 @@ class UpdateManagerUpdate extends FormBase {
|
||||
}
|
||||
|
||||
// Use the project title for the tableselect checkboxes.
|
||||
$entry['title'] = ['data' => [
|
||||
'#title' => $entry['title'],
|
||||
'#markup' => $entry['title'],
|
||||
]];
|
||||
$entry['title'] = [
|
||||
'data' => [
|
||||
'#title' => $entry['title'],
|
||||
'#markup' => $entry['title'],
|
||||
],
|
||||
];
|
||||
$entry['#attributes'] = ['class' => ['update-' . $type]];
|
||||
|
||||
// Drupal core needs to be upgraded manually.
|
||||
@@ -278,7 +280,7 @@ class UpdateManagerUpdate extends FormBase {
|
||||
|
||||
if (!empty($projects['manual'])) {
|
||||
$prefix = '<h2>' . $this->t('Manual updates required') . '</h2>';
|
||||
$prefix .= '<p>' . $this->t('Updates of Drupal core are not supported at this time.') . '</p>';
|
||||
$prefix .= '<p>' . $this->t('Automatic updates of Drupal core are not supported at this time.') . '</p>';
|
||||
$form['manual_updates'] = [
|
||||
'#type' => 'table',
|
||||
'#header' => $headers,
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
namespace Drupal\update;
|
||||
|
||||
|
||||
/**
|
||||
* Processor of project update information.
|
||||
*/
|
||||
|
||||
@@ -5,8 +5,8 @@ package: Testing
|
||||
# version: VERSION
|
||||
# core: 8.x
|
||||
|
||||
# Information added by Drupal.org packaging script on 2017-08-16
|
||||
version: '8.3.7'
|
||||
# Information added by Drupal.org packaging script on 2017-11-03
|
||||
version: '8.4.2'
|
||||
core: '8.x'
|
||||
project: 'drupal'
|
||||
datestamp: 1502903957
|
||||
datestamp: 1509719929
|
||||
|
||||
@@ -5,8 +5,8 @@ package: Testing
|
||||
# version: VERSION
|
||||
# core: 8.x
|
||||
|
||||
# Information added by Drupal.org packaging script on 2017-08-16
|
||||
version: '8.3.7'
|
||||
# Information added by Drupal.org packaging script on 2017-11-03
|
||||
version: '8.4.2'
|
||||
core: '8.x'
|
||||
project: 'drupal'
|
||||
datestamp: 1502903957
|
||||
datestamp: 1509719929
|
||||
|
||||
@@ -5,8 +5,8 @@ package: Testing
|
||||
# version: VERSION
|
||||
# core: 8.x
|
||||
|
||||
# Information added by Drupal.org packaging script on 2017-08-16
|
||||
version: '8.3.7'
|
||||
# Information added by Drupal.org packaging script on 2017-11-03
|
||||
version: '8.4.2'
|
||||
core: '8.x'
|
||||
project: 'drupal'
|
||||
datestamp: 1502903957
|
||||
datestamp: 1509719929
|
||||
|
||||
@@ -5,8 +5,8 @@ package: Testing
|
||||
# version: VERSION
|
||||
# core: 8.x
|
||||
|
||||
# Information added by Drupal.org packaging script on 2017-08-16
|
||||
version: '8.3.7'
|
||||
# Information added by Drupal.org packaging script on 2017-11-03
|
||||
version: '8.4.2'
|
||||
core: '8.x'
|
||||
project: 'drupal'
|
||||
datestamp: 1502903957
|
||||
datestamp: 1509719929
|
||||
|
||||
@@ -5,8 +5,8 @@ package: Testing
|
||||
# version: VERSION
|
||||
# core: 8.x
|
||||
|
||||
# Information added by Drupal.org packaging script on 2017-08-16
|
||||
version: '8.3.7'
|
||||
# Information added by Drupal.org packaging script on 2017-11-03
|
||||
version: '8.4.2'
|
||||
core: '8.x'
|
||||
project: 'drupal'
|
||||
datestamp: 1502903957
|
||||
datestamp: 1509719929
|
||||
|
||||
+3
-3
@@ -4,8 +4,8 @@ description: 'Test theme which acts as a base theme for other test subthemes.'
|
||||
# version: VERSION
|
||||
# core: 8.x
|
||||
|
||||
# Information added by Drupal.org packaging script on 2017-08-16
|
||||
version: '8.3.7'
|
||||
# Information added by Drupal.org packaging script on 2017-11-03
|
||||
version: '8.4.2'
|
||||
core: '8.x'
|
||||
project: 'drupal'
|
||||
datestamp: 1502903957
|
||||
datestamp: 1509719929
|
||||
|
||||
@@ -5,8 +5,8 @@ description: 'Test theme which uses update_test_basetheme as the base theme.'
|
||||
# core: 8.x
|
||||
base theme: update_test_basetheme
|
||||
|
||||
# Information added by Drupal.org packaging script on 2017-08-16
|
||||
version: '8.3.7'
|
||||
# Information added by Drupal.org packaging script on 2017-11-03
|
||||
version: '8.4.2'
|
||||
core: '8.x'
|
||||
project: 'drupal'
|
||||
datestamp: 1502903957
|
||||
datestamp: 1509719929
|
||||
|
||||
@@ -8,8 +8,8 @@ configure: update.settings
|
||||
dependencies:
|
||||
- file
|
||||
|
||||
# Information added by Drupal.org packaging script on 2017-08-16
|
||||
version: '8.3.7'
|
||||
# Information added by Drupal.org packaging script on 2017-11-03
|
||||
version: '8.4.2'
|
||||
core: '8.x'
|
||||
project: 'drupal'
|
||||
datestamp: 1502903957
|
||||
datestamp: 1509719929
|
||||
|
||||
@@ -53,7 +53,7 @@ function update_manager_download_batch_finished($success, $results) {
|
||||
'#title' => t('Downloading updates failed:'),
|
||||
'#items' => $results['errors'],
|
||||
];
|
||||
drupal_set_message(drupal_render($item_list), 'error');
|
||||
drupal_set_message(\Drupal::service('renderer')->render($item_list), 'error');
|
||||
}
|
||||
elseif ($success) {
|
||||
drupal_set_message(t('Updates downloaded successfully.'));
|
||||
|
||||
@@ -23,6 +23,8 @@ use Drupal\Core\Site\Settings;
|
||||
*
|
||||
* @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.0.
|
||||
* Use \Drupal\update\UpdateManagerInterface::NOT_SECURE instead.
|
||||
*
|
||||
* @see https://www.drupal.org/node/2831620
|
||||
*/
|
||||
const UPDATE_NOT_SECURE = 1;
|
||||
|
||||
@@ -31,6 +33,8 @@ const UPDATE_NOT_SECURE = 1;
|
||||
*
|
||||
* @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.0.
|
||||
* Use \Drupal\update\UpdateManagerInterface::REVOKED instead.
|
||||
*
|
||||
* @see https://www.drupal.org/node/2831620
|
||||
*/
|
||||
const UPDATE_REVOKED = 2;
|
||||
|
||||
@@ -39,6 +43,8 @@ const UPDATE_REVOKED = 2;
|
||||
*
|
||||
* @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.0.
|
||||
* Use \Drupal\update\UpdateManagerInterface::NOT_SUPPORTED instead.
|
||||
*
|
||||
* @see https://www.drupal.org/node/2831620
|
||||
*/
|
||||
const UPDATE_NOT_SUPPORTED = 3;
|
||||
|
||||
@@ -47,6 +53,8 @@ const UPDATE_NOT_SUPPORTED = 3;
|
||||
*
|
||||
* @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.0.
|
||||
* Use \Drupal\update\UpdateManagerInterface::NOT_CURRENT instead.
|
||||
*
|
||||
* @see https://www.drupal.org/node/2831620
|
||||
*/
|
||||
const UPDATE_NOT_CURRENT = 4;
|
||||
|
||||
@@ -55,6 +63,8 @@ const UPDATE_NOT_CURRENT = 4;
|
||||
*
|
||||
* @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.0.
|
||||
* Use \Drupal\update\UpdateManagerInterface::CURRENT instead.
|
||||
*
|
||||
* @see https://www.drupal.org/node/2831620
|
||||
*/
|
||||
const UPDATE_CURRENT = 5;
|
||||
|
||||
@@ -63,6 +73,8 @@ const UPDATE_CURRENT = 5;
|
||||
*
|
||||
* @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.0.
|
||||
* Use \Drupal\update\UpdateFetcherInterface::NOT_CHECKED instead.
|
||||
*
|
||||
* @see https://www.drupal.org/node/2831620
|
||||
*/
|
||||
const UPDATE_NOT_CHECKED = -1;
|
||||
|
||||
@@ -71,6 +83,8 @@ const UPDATE_NOT_CHECKED = -1;
|
||||
*
|
||||
* @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.0.
|
||||
* Use \Drupal\update\UpdateFetcherInterface::UNKNOWN instead.
|
||||
*
|
||||
* @see https://www.drupal.org/node/2831620
|
||||
*/
|
||||
const UPDATE_UNKNOWN = -2;
|
||||
|
||||
@@ -79,6 +93,8 @@ const UPDATE_UNKNOWN = -2;
|
||||
*
|
||||
* @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.0.
|
||||
* Use \Drupal\update\UpdateFetcherInterface::NOT_FETCHED instead.
|
||||
*
|
||||
* @see https://www.drupal.org/node/2831620
|
||||
*/
|
||||
const UPDATE_NOT_FETCHED = -3;
|
||||
|
||||
@@ -87,6 +103,8 @@ const UPDATE_NOT_FETCHED = -3;
|
||||
*
|
||||
* @deprecated in Drupal 8.3.x and will be removed before Drupal 9.0.0.
|
||||
* Use \Drupal\update\UpdateFetcherInterface::FETCH_PENDING instead.
|
||||
*
|
||||
* @see https://www.drupal.org/node/2831620
|
||||
*/
|
||||
const UPDATE_FETCH_PENDING = -4;
|
||||
|
||||
@@ -349,7 +367,7 @@ function update_get_available($refresh = FALSE) {
|
||||
foreach ($projects as $key => $project) {
|
||||
// If there's no data at all, we clearly need to fetch some.
|
||||
if (empty($available[$key])) {
|
||||
//update_create_fetch_task($project);
|
||||
// update_create_fetch_task($project);
|
||||
\Drupal::service('update.processor')->createFetchTask($project);
|
||||
$needs_refresh = TRUE;
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user