Sfoglia il codice sorgente

* Ensure installer is there, needed by some packages

Michael VAN CANNEYT 2 anni fa
parent
commit
41da4ffdbb
1 ha cambiato i file con 6 aggiunte e 3 eliminazioni
  1. 6 3
      packages/fpmake.pp

+ 6 - 3
packages/fpmake.pp

@@ -52,8 +52,11 @@ end;
 
 {$ifdef no_parent}
 begin
-  add_packages_comandlineoptions();
-  add_packages('');
-  Installer.Run;
+  if Assigned(Installer) then
+    begin
+    add_packages_comandlineoptions();
+    add_packages('');
+    Installer.Run;
+    end;
 end.
 {$endif no_parent}