mirror of https://gitlab.com/basile.b/dexed.git
libman, fetch DUB package, fine tweaks
This commit is contained in:
parent
9e3be34ce7
commit
c52fc75a6e
|
@ -180,10 +180,10 @@ begin
|
||||||
pth := GetEnvironmentVariable('HOME') + '/.dub/packages/' + nme + '-master';
|
pth := GetEnvironmentVariable('HOME') + '/.dub/packages/' + nme + '-master';
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
itf := getMessageDisplay;
|
itf := getMessageDisplay;
|
||||||
if pth.dirExists then
|
if pth.dirExists and not DeleteDirectory(pth, false) then
|
||||||
begin
|
begin
|
||||||
upd := true;
|
upd := true;
|
||||||
itf.message('information, the dub package is already fetched and will be upgraded', nil, amcApp, amkInf);
|
itf.message('information, the dub package is already fetched and will be upgraded', nil, amcMisc, amkInf);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
// fetch / updgrade
|
// fetch / updgrade
|
||||||
|
@ -219,7 +219,7 @@ begin
|
||||||
end;
|
end;
|
||||||
if err <> 0 then
|
if err <> 0 then
|
||||||
begin
|
begin
|
||||||
itf.message('error, failed to fetch or upgrade the repository', nil, amcApp, amkErr);
|
itf.message('error, failed to fetch or upgrade the repository', nil, amcMisc, amkErr);
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -247,7 +247,7 @@ begin
|
||||||
end;
|
end;
|
||||||
if err <> 0 then
|
if err <> 0 then
|
||||||
begin
|
begin
|
||||||
itf.message('error, failed to compile the package to register', nil, amcApp, amkErr);
|
itf.message('error, failed to compile the package to register', nil, amcMisc, amkErr);
|
||||||
exit;
|
exit;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -265,7 +265,7 @@ begin
|
||||||
try
|
try
|
||||||
for idx := 0 to prj.sourcesCount-1 do
|
for idx := 0 to prj.sourcesCount-1 do
|
||||||
str.Add(prj.sourceAbsolute(idx));
|
str.Add(prj.sourceAbsolute(idx));
|
||||||
if not upd then with List.Items.Add do
|
with List.Items.Add do
|
||||||
begin
|
begin
|
||||||
Caption := nme;
|
Caption := nme;
|
||||||
SubItems.Add(prj.outputFilename);
|
SubItems.Add(prj.outputFilename);
|
||||||
|
@ -284,7 +284,7 @@ begin
|
||||||
end;
|
end;
|
||||||
end else
|
end else
|
||||||
itf.message('warning, the package json description can not be found or the target is not a static library',
|
itf.message('warning, the package json description can not be found or the target is not a static library',
|
||||||
nil, amcApp, amkWarn);
|
nil, amcMisc, amkWarn);
|
||||||
finally
|
finally
|
||||||
prj.Free;
|
prj.Free;
|
||||||
EntitiesConnector.endUpdate;
|
EntitiesConnector.endUpdate;
|
||||||
|
|
Loading…
Reference in New Issue