Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a method to tell if a package has been patched #392

Merged
merged 1 commit into from
Jan 25, 2022
Merged

Add a method to tell if a package has been patched #392

merged 1 commit into from
Jan 25, 2022

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