I have a site which is a Commerce Kickstart distribution.
My distribution version is 7.x-2.0-rc1 and now the 7.x-2.0-rc2 version is available.
How do I update a distribution? I tried these method (both failed...)
1) I follow the update standar process using the drupal ui. I get this error message:
> Notice: Undefined index: version_major in update_calculate_project_update_status() (line 595 of > /Applications/MAMP/htdocs/mySite.com/modules/update/update.compare.inc). > Downloading updates failed: > > commerce_kickstart-7.x-2.0-rc2-core.tar.gz does not contain any .info files. > Notice: Undefined index: version_major in update_calculate_project_update_status() (line 595 of > /Applications/MAMP/htdocs/mySite.com/modules/update/update.compare.inc).
2) I downloaded the distribution and replace the folder mysite.com/profiles/commerce_kickstart This didn't work neither.
¿Which is the right way to to do this?
You should try it with drush.
drush dl commerce_kickstart drush updatedb -y
(I have not tried it for commerce kickstart; I just got the answer on drupal.org.)
Commerce Kickstart has a documentation page explaining how to install or update the distribution: http://www.drupalcommerce.org/commerce-kickstart-2/install. It is linked from the project page on drupal.org.
The updater inside Drupal can't update distributions (or Drupal core itself), so it can't work for Kickstart.
Although "drush pm-download" should work, there is an initiative to have this work with "drush pm-updatecode" as well. See the issue on Github Drush up should update contrib profiles as well for details.
At the time of this writing, there's nothing available for use, but hopefully there will be usable code soon. Feel free to contribute to the thread so that we can get this done faster.
Eleven steps to upgrade a Drupal 7 distribution:
Source and details into this official documentation at https://www.drupal.org/docs/7/distributions/maintaining-sites-built-with-distributions#update-distribution