ww: restrict command self-import exception

This commit is contained in:
2026-08-13 03:38:58 +09:00
parent 4377634bb9
commit 5f0f544157
2 changed files with 4 additions and 2 deletions

View File

@@ -1486,7 +1486,8 @@ fn sepscanfile(g: *sepgraph, pi: i32, file: *u8, searchpath: *u8,
let self: bool = os.samefile(pathstr(ipath),
pathstr(g.pkg[pi].entry));
if (self && (sepexternalname(&g.pkg[pi], idp, idn, true)
|| sepcommanddeclaredname(&g.pkg[pi]))) {
|| (g.pkg[pi].variant == SEP_VARIANT_EXTERNAL
&& sepcommanddeclaredname(&g.pkg[pi])))) {
externalproduction = true;
};
if (self && !externalproduction) {