libman,sources root detection, handle package as di

This commit is contained in:
Basile Burg 2016-10-30 13:57:21 +01:00
parent cbb108343f
commit 05210bb82d
No known key found for this signature in database
GPG Key ID: 1868039F415CB8CF
1 changed files with 1 additions and 1 deletions

View File

@ -900,7 +900,7 @@ begin
srcc.LoadFromFile(path);
lex(srcc.Text, toks, @lexFindToken, [lxoNoComments]);
mnme := getModuleName(toks);
if path.extractFileName = 'package.d' then
if path.extractFileName.stripFileExt = 'package' then
mnme := mnme + '.p';
toks.Clear;
setLength(fldn, 0);