Skip to content

Conversation

phenaproxima
Copy link
Contributor

For the purposes of Drupal's auto-updates initiative, it would be really useful to us to have an API method in this plugin which can tell us if an installed package has been patched. We could just check the presence of the extra.patches_applied key -- and indeed, we do -- but we'd rather the plugin exposed an API for this, so we don't have to rely on internal keys. So this PR adds a Patch::isPackagePatched() method for this purpose.

See related discussion in https://www.drupal.org/project/automatic_updates/issues/3252299.

@cweagans cweagans merged commit 55c4289 into cweagans:master Jan 25, 2022
@cweagans
Copy link
Owner

Note that if you want this in a release any time soon, this will also need to go into 1.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants