mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-08 06:35:59 +02:00
OpkMan: Skip clean directory for PL packages.
This commit is contained in:
parent
f7d2d0a690
commit
d0a2f521d4
@ -507,11 +507,19 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
function CleanDirectory(const ADirectory: String): Boolean;
|
function CleanDirectory(const ADirectory: String): Boolean;
|
||||||
|
const
|
||||||
|
SkipDir = 'ct4laz';
|
||||||
var
|
var
|
||||||
SR: TSearchRec;
|
SR: TSearchRec;
|
||||||
DirName: String;
|
DirName: String;
|
||||||
Name: String;
|
Name: String;
|
||||||
begin
|
begin
|
||||||
|
if Pos(SkipDir, ADirectory) > 0 then
|
||||||
|
begin
|
||||||
|
Result := True;
|
||||||
|
Exit;
|
||||||
|
end;
|
||||||
|
|
||||||
DirName := AppendPathDelim(ADirectory);
|
DirName := AppendPathDelim(ADirectory);
|
||||||
if IsDirectoryEmpty(DirName) then
|
if IsDirectoryEmpty(DirName) then
|
||||||
RemoveDirUTF8(DirName);
|
RemoveDirUTF8(DirName);
|
||||||
|
Loading…
Reference in New Issue
Block a user