Hi,

I have read the make documentation and searched the issue queue without finding anything useful, so here I go:

There are situations were you want to apply a patch after everything have been installed/download (by Drush make). Is that doable? Port/packaging systems for various operating systems have a post install target that handle such stuff.

Comments

jhedstrom’s picture

I'd be curious as to the use case. Normally, patches target single projects, so the drush make workflow supports specifying patches against projects. If a patch includes changes to multiple projects, that is currently not supported, but could potentially be a feature addition.

hansfn’s picture

I kind of expected that question. In addition to the obvious use case that you mention, I just stumbled upon another use case - patching modules in an installation profile. I know I can work-around this various ways, but it would be really nice to just say that this patch should be applied at the end.

PS! One of the work-arounds is to add the module in question explicitly to my make file (over-riding the module in the profile) and set a patch for that module. This doesn't work that well since the patch isn't written for the module, but for the installation profile. I don't think I currently can tell Drush to strip 2 or 3 directory levels when patching?

greg.1.anderson’s picture

Both drush make and drush iq try only -p0 and -p1 when applying patches. drush iq is more flexible than drush make in that if you give it a patch number that you want to apply, then it will try to find the correct module directory to apply the patch in. I would suggest trying to run drush iq manually after drush make; if that works, you might try using a post-make hook to invoke drush iq.

If drush iq can't find modules in a profile, then move this bug to the iq queue, or open a new issue there, and I'll fix it.

greg.1.anderson’s picture

Status: Active » Closed (won't fix)
Issue tags: +Needs migration

This issue was marked closed (won't fix) because Drush has moved to Github.

If you still need help, please ask your question again on Drupal Answers and then post a link here to the new question. Please also change the status of this issue to closed (duplicate).

Use our Github project for contributing code, or reporting bugs, or requesting features.