* Show that dependencies are being installed

git-svn-id: trunk@16912 -
This commit is contained in:
joost 2011-02-13 15:12:13 +00:00
parent e8f654ffa5
commit 8292cc17e2
2 changed files with 11 additions and 4 deletions

View File

@ -371,8 +371,13 @@ begin
if assigned(MissingDependency) then
Error(SErrNoPackageAvailable,[MissingDependency.PackageName,MissingDependency.MinVersion.AsString]);
// Install needed updates
for i:=0 to L.Count-1 do
ExecuteAction(L[i],'install');
if L.Count > 0 then
begin
pkgglobals.Log(vlProgres,SProgrInstallDependencies);
for i:=0 to L.Count-1 do
ExecuteAction(L[i],'install');
pkgglobals.Log(vlProgres,SProgrDependenciesInstalled);
end;
FreeAndNil(L);
if FreeManifest then
FreeAndNil(P);
@ -389,7 +394,7 @@ begin
FindBrokenPackages(SL);
if SL.Count=0 then
break;
pkgglobals.Log(vlProgres,SWarnReinstallDependent);
pkgglobals.Log(vlProgres,SProgrReinstallDependent);
for i:=0 to SL.Count-1 do
begin
ExecuteAction(SL[i],'build');

View File

@ -109,7 +109,9 @@ Resourcestring
SDbgPackageDependencyOtherTarget = 'Dependency on package %s is not for %s';
SDbgObsoleteDependency = 'Obsolete dependency found on package %s';
SWarnReinstallDependent = 'Re-install packages which are dependent on just installed packages';
SProgrReinstallDependent = 'Re-install packages which are dependent on just installed packages';
SProgrInstallDependencies = 'Install dependencies';
SProgrDependenciesInstalled= 'Dependencies installed';
implementation