mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-20 10:49:20 +02:00
* When IsSuperUser is true, use the GlobalUnitDir instead of the
LocalUnitDir. Just like that the GlobalInstallDir is passed to fpmake. git-svn-id: trunk@12945 -
This commit is contained in:
parent
a7e02c7948
commit
bfae5e097d
@ -275,7 +275,7 @@ begin
|
|||||||
P:=InstalledRepository.FindPackage(S);
|
P:=InstalledRepository.FindPackage(S);
|
||||||
if not assigned(P) then
|
if not assigned(P) then
|
||||||
P:=InstalledRepository.AddPackage(S);
|
P:=InstalledRepository.AddPackage(S);
|
||||||
if GlobalOptions.InstallGlobal then
|
if IsSuperUser or GlobalOptions.InstallGlobal then
|
||||||
UFN:=CompilerOptions.GlobalUnitDir
|
UFN:=CompilerOptions.GlobalUnitDir
|
||||||
else
|
else
|
||||||
UFN:=CompilerOptions.LocalUnitDir;
|
UFN:=CompilerOptions.LocalUnitDir;
|
||||||
|
Loading…
Reference in New Issue
Block a user