Skip to content
Snippets Groups Projects

Issue #3112393: Allow vendor hardening to remove individual files

Closed Issue #3112393: Allow vendor hardening to remove individual files
All threads resolved!
Closed Conrad Lara requested to merge issue/drupal-3112393:3112393-allow-vendor-hardening into 11.x
All threads resolved!
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -347,7 +347,7 @@ protected function cleanPathsForPackage(PackageInterface $package, $paths_for_pa
@@ -347,7 +347,7 @@ protected function cleanPathsForPackage(PackageInterface $package, $paths_for_pa
$fs = new Filesystem();
$fs = new Filesystem();
foreach ($paths_for_package as $cleanup_item) {
foreach ($paths_for_package as $cleanup_item) {
$cleanup_path = $package_dir . '/' . $cleanup_item;
$cleanup_path = $package_dir . '/' . $cleanup_item;
if (!is_dir($cleanup_path) && !is_file($cleanup_path)) {
if (!file_exists($cleanup_path)) {
// If the package has changed or the --prefer-dist version does not
// If the package has changed or the --prefer-dist version does not
// include the directory. This is not an error.
// include the directory. This is not an error.
$this->io->writeError(sprintf("%s<comment>Path '%s' does not exist.</comment>", str_repeat(' ', 6), $cleanup_path), TRUE, IOInterface::VERY_VERBOSE);
$this->io->writeError(sprintf("%s<comment>Path '%s' does not exist.</comment>", str_repeat(' ', 6), $cleanup_path), TRUE, IOInterface::VERY_VERBOSE);
Loading