Skip to content

Commit

Permalink
chore(deps): Bump cweagans/composer-patches from 1.7.1 to 1.7.3
Browse files Browse the repository at this point in the history
Bumps [cweagans/composer-patches](https://github.com/cweagans/composer-patches) from 1.7.1 to 1.7.3.
- [Release notes](https://github.com/cweagans/composer-patches/releases)
- [Commits](cweagans/composer-patches@1.7.1...1.7.3)

---
updated-dependencies:
- dependency-name: cweagans/composer-patches
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
  • Loading branch information
dependabot[bot] authored and kesselb committed Sep 1, 2023
1 parent 40ba794 commit 40c376d
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 16 deletions.
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -357,17 +357,17 @@
},
{
"name": "cweagans/composer-patches",
"version": "1.7.1",
"version_normalized": "1.7.1.0",
"version": "1.7.3",
"version_normalized": "1.7.3.0",
"source": {
"type": "git",
"url": "https://github.com/cweagans/composer-patches.git",
"reference": "9888dcc74993c030b75f3dd548bb5e20cdbd740c"
"reference": "e190d4466fe2b103a55467dfa83fc2fecfcaf2db"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/cweagans/composer-patches/zipball/9888dcc74993c030b75f3dd548bb5e20cdbd740c",
"reference": "9888dcc74993c030b75f3dd548bb5e20cdbd740c",
"url": "https://api.github.com/repos/cweagans/composer-patches/zipball/e190d4466fe2b103a55467dfa83fc2fecfcaf2db",
"reference": "e190d4466fe2b103a55467dfa83fc2fecfcaf2db",
"shasum": ""
},
"require": {
Expand All @@ -378,7 +378,7 @@
"composer/composer": "~1.0 || ~2.0",
"phpunit/phpunit": "~4.6"
},
"time": "2021-06-08T15:12:46+00:00",
"time": "2022-12-20T22:53:13+00:00",
"type": "composer-plugin",
"extra": {
"class": "cweagans\\Composer\\Patches"
Expand All @@ -402,7 +402,7 @@
"description": "Provides a way to patch Composer packages.",
"support": {
"issues": "https://github.com/cweagans/composer-patches/issues",
"source": "https://github.com/cweagans/composer-patches/tree/1.7.1"
"source": "https://github.com/cweagans/composer-patches/tree/1.7.3"
},
"install-path": "../cweagans/composer-patches"
},
Expand Down
6 changes: 3 additions & 3 deletions composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@
'dev_requirement' => false,
),
'cweagans/composer-patches' => array(
'pretty_version' => '1.7.1',
'version' => '1.7.1.0',
'reference' => '9888dcc74993c030b75f3dd548bb5e20cdbd740c',
'pretty_version' => '1.7.3',
'version' => '1.7.3.0',
'reference' => 'e190d4466fe2b103a55467dfa83fc2fecfcaf2db',
'type' => 'composer-plugin',
'install_path' => __DIR__ . '/../cweagans/composer-patches',
'aliases' => array(),
Expand Down
18 changes: 18 additions & 0 deletions cweagans/composer-patches/src/Patches.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ class Patches implements PluginInterface, EventSubscriberInterface {
*/
protected $patches;

/**
* @var array $installedPatches
*/
protected $installedPatches;

/**
* Apply plugin modifications to composer
*
Expand Down Expand Up @@ -564,6 +569,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 40c376d

Please sign in to comment.