* Give a clear error when the source of a package is not available

git-svn-id: trunk@35776 -
This commit is contained in:
joost 2017-04-11 16:42:37 +00:00
parent 2aa623964e
commit 61739262c7
2 changed files with 8 additions and 4 deletions

View File

@ -366,11 +366,14 @@ begin
else
begin
P:=PackageManager.FindPackage(PackageName, pkgpkAvailable);
if Assigned(P) then
if not Assigned(P) then
begin
if P.PackagesStructure.UnzipBeforeUse then
ExecuteAction(PackageName,'unzip');
Error(Format(SErrPackageNotAvailable, [PackageName]));
Exit;
end;
if P.PackagesStructure.UnzipBeforeUse then
ExecuteAction(PackageName,'unzip');
ExecuteAction(PackageName,'installdependencies');
end;
end;

View File

@ -26,7 +26,8 @@ Resourcestring
SErrMissingPackage = 'Could not find package "%s"';
SErrMissingInstallRepo = 'Could not find repository "%s"';
SErrNoPackageSpecified = 'No package specified';
SErrNoPackageAvailable = 'Package %s %s is not available';
SErrPackageNotAvailable = 'Source of package %s is not available';
SErrNoPackageAvailable = 'Package dependency %s %s is not available';
SErrOnlyLocalDir = 'The specified command "%s" works only on current dir, not on a (remote) package';
SErrIllConfRepository = 'Invalid configured repository "%s"';
SErrExecutionFPMake = 'Execution of FPMake %s failed';