- edited description
Applying patches on a distribution
Hello and sorry for my bad English
I use an Open Atrium distribution where I have applied several patches. Each time that I update I have to reapply all the patches one by one. I learned about Drush Patch File and since I use drush (not expert) I would like to learn it to be able to use it.
My steps (please correct to me on what I do bad :)
-
I created a patches.make empty file in the Drupal root directory.
-
I created a drushrc.php in Drupal root directory with $options['patch-file'] = 'patches.make';
-
I have added davereid-drush-patchfile-adbc5ecd1f17 folder to ~/.drush folder in my user Ubuntu home.
-
I have cleared cache drush cache-clear drush
When I try to add a patch with drush patch-add drupal https://www.drupal.org/files/2097081-fix-sticky-header-column-width-7.x-6.patch
The patch is applied, but I get this error
file_put_contents(): Filename cannot be empty patchfile.drush.inc:512 [warning] Unable to append to file .
Sure that I am making something wrong because I am learning the make mechanism. Any help will be welcome and thanks for your generous work :)
Comments (7)
-
reporter -
reporter - edited description
Trying to get the steps in a list...
-
reporter Drush Version : 6.2.0
-
reporter I copied the drushrc.php to ~/.drush and now works. At the moment I am very excited to be able to add all the patches, so I go to practice. Thanks for the tool!!!
I wanted to make it well and I tried the command in the project folder
drush patch-project project_name /var/www/project_name --patch-file /var/www/project_name/patches.make
it stays for long without finishing ever (I have to ctrl+c)
Thanks for any tips
-
reporter Comparing with the Open Atrium make my patch doesn't get the number. I mean
projects[drupal][patch][NO_NUMBER_HERE] = "http://www.drupal.org/files/2097081-fix-sticky-header-column-width-7.x-6.patch"
while in Open Atrium
projects[drupal][patch][1356276] = http://drupal.org/files/1356276-make-D7-21.patch
-
repo owner @candela You can manually change the format after it's been added. Using the node ID of the patch only works for patches that are on Drupal.org issues, and fails when you need to apply more than one patch from the same node ID. I've generally found that I encounter less typing or unintentional errors by not putting any patch number in that part of the line.
-
reporter I used in patches from Drupal.org. Anyway, writting those numbers is nothing. So thanks for many hours that you have given to me with this tool. I will follow what else you make :)
- Log in to comment