Skip to content

Commit 681a70e

Browse files
committed
Skip re-extract ext-imap source
1 parent 1b4eb03 commit 681a70e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/SPC/store/SourceManager.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,13 @@ public static function initSource(?array $sources = null, ?array $libs = null, ?
8585
continue;
8686
}
8787

88+
// ext imap was embeded in php <= 8.3, if php version < 8.4, we should not extract
89+
// but since it's not simple to compare php version, for now we just skip it
90+
if ($source === 'ext-imap') {
91+
logger()->debug('Source [imap] already extracted in ' . $check . ', skip !');
92+
continue;
93+
}
94+
8895
// if not, remove the source dir and extract again
8996
logger()->notice("Source [{$source}] hash mismatch, removing old source dir and extracting again ...");
9097
FileSystem::removeDir($check);

0 commit comments

Comments
 (0)