Skip to content

Commit 3860ad0

Browse files
committed
[3.0] Fix <move-file>/<move-dir> in package-info
The test was trying to confirm that the destination file existed, when it's actually supposed to not exist since we're moving something to that name. Turns out a similar fix was done earlier to stop the warning from showing up for <create-dir> and <create-file> (#3009), so I just extended that fix. Fixes #8986 Signed-off-by: Dav999 <[email protected]>
1 parent 30216bb commit 3860ad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/PackageManager/PackageManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ public function installTest(): void
746746
}
747747

748748
// Don't fail if a file/directory we're trying to create doesn't exist...
749-
if (isset($action['filename']) && !file_exists($file) && !\in_array($action['type'], ['create-dir', 'create-file']) && $action['error'] != 'ignore') {
749+
if (isset($action['filename']) && !file_exists($file) && !\in_array($action['type'], ['create-dir', 'create-file', 'move-dir', 'move-file']) && $action['error'] != 'ignore') {
750750
Utils::$context['has_failure'] = true;
751751

752752
$thisAction += [

0 commit comments

Comments
 (0)