From 40c376d3625342c38af371de66352dae9b539915 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 24 Aug 2023 15:40:48 +0000 Subject: [PATCH] chore(deps): Bump cweagans/composer-patches from 1.7.1 to 1.7.3 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](https://github.com/cweagans/composer-patches/compare/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] --- composer.lock | 12 ++++++------ composer/installed.json | 14 +++++++------- composer/installed.php | 6 +++--- cweagans/composer-patches/src/Patches.php | 18 ++++++++++++++++++ 4 files changed, 34 insertions(+), 16 deletions(-) diff --git a/composer.lock b/composer.lock index bde00c5d5..04c40b9c6 100644 --- a/composer.lock +++ b/composer.lock @@ -345,16 +345,16 @@ }, { "name": "cweagans/composer-patches", - "version": "1.7.1", + "version": "1.7.3", "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": { @@ -387,9 +387,9 @@ "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" }, - "time": "2021-06-08T15:12:46+00:00" + "time": "2022-12-20T22:53:13+00:00" }, { "name": "deepdiver/zipstreamer", diff --git a/composer/installed.json b/composer/installed.json index 85695e7fb..4f244f47c 100644 --- a/composer/installed.json +++ b/composer/installed.json @@ -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": { @@ -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" @@ -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" }, diff --git a/composer/installed.php b/composer/installed.php index ec141032f..5ce1d3015 100644 --- a/composer/installed.php +++ b/composer/installed.php @@ -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(), diff --git a/cweagans/composer-patches/src/Patches.php b/cweagans/composer-patches/src/Patches.php index 4f77eb3b0..3d7d864a2 100644 --- a/cweagans/composer-patches/src/Patches.php +++ b/cweagans/composer-patches/src/Patches.php @@ -48,6 +48,11 @@ class Patches implements PluginInterface, EventSubscriberInterface { */ protected $patches; + /** + * @var array $installedPatches + */ + protected $installedPatches; + /** * Apply plugin modifications to composer * @@ -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} */