mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-22 01:09:27 +02:00
* Give a clear error when the source of a package is not available
git-svn-id: trunk@35776 -
This commit is contained in:
parent
2aa623964e
commit
61739262c7
@ -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;
|
||||
|
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user