Skip to content

Commit

Permalink
Merge pull request #393 from phenaproxima/1.x
Browse files Browse the repository at this point in the history
  • Loading branch information
cweagans committed Jan 25, 2022
2 parents 9888dcc + 615ee57 commit e9969cf
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Patches.php
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,19 @@ protected function applyPatchWithGit($install_path, $patch_levels, $filename) {
return $patched;
}

/**
* Indicates if a package has been patched.
*
* @param \Composer\Package\PackageInterface $package
* The package to check.
*
* @return bool
* TRUE if the package has been patched.
*/
public static function isPackagePatched(PackageInterface $package) {
return array_key_exists('patches_applied', $package->getExtra());
}

/**
* {@inheritDoc}
*/
Expand Down

0 comments on commit e9969cf

Please sign in to comment.