IDE: ignore read only PO output directories for packages

git-svn-id: trunk@12720 -
This commit is contained in:
mattias 2007-11-03 17:08:52 +00:00
parent ecf446c193
commit dce6093a4d
2 changed files with 6 additions and 0 deletions

View File

@ -427,6 +427,11 @@ begin
Result:=true;
if (RSTDirectory='') then exit;// nothing to do
RSTDirectory:=AppendPathDelim(RSTDirectory);
if not DirectoryIsWritableCached(RSTDirectory) then begin
// only update writable directories
DebugLn(['ConvertRSTFiles skipping read only directory ',RSTDirectory]);
exit(true);
end;
// find all .rst files in package output directory
PODirectory:=AppendPathDelim(PODirectory);

View File

@ -2709,6 +2709,7 @@ begin
exit(mrOK);
end;
PkgOutputDirectory:=AppendPathDelim(APackage.GetOutputDirectory);
if not ConvertRSTFiles(PkgOutputDirectory,RSTOutputDirectory) then begin
DebugLn(['TLazPackageGraph.ConvertPackageRSTFiles FAILED: PkgOutputDirectory=',PkgOutputDirectory,' RSTOutputDirectory=',RSTOutputDirectory]);
exit(mrCancel);