소스 검색

* 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 -

joost 16 년 전
부모
커밋
bfae5e097d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      utils/fppkg/pkgcommands.pp

+ 1 - 1
utils/fppkg/pkgcommands.pp

@@ -275,7 +275,7 @@ begin
       P:=InstalledRepository.FindPackage(S);
       if not assigned(P) then
         P:=InstalledRepository.AddPackage(S);
-      if GlobalOptions.InstallGlobal then
+      if IsSuperUser or GlobalOptions.InstallGlobal then
         UFN:=CompilerOptions.GlobalUnitDir
       else
         UFN:=CompilerOptions.LocalUnitDir;