mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 02:18:03 +02:00
IDE: package manager: AddProjectDependency: return mrOk if already exists
git-svn-id: trunk@22113 -
This commit is contained in:
parent
61806eef87
commit
9db44686b6
@ -92,6 +92,8 @@ type
|
||||
procedure AddDefaultDependencies(AProject: TProject); virtual; abstract;
|
||||
function AddProjectDependency(AProject: TProject; APackage: TLazPackage;
|
||||
OnlyTestIfPossible: boolean = false): TModalResult; virtual; abstract;
|
||||
function AddProjectDependency(AProject: TProject;
|
||||
ADependency: TPkgDependency): TModalResult; virtual; abstract;
|
||||
procedure AddProjectRegCompDependency(AProject: TProject;
|
||||
ARegisteredComponent: TRegisteredComponent); virtual; abstract;
|
||||
procedure AddProjectLCLDependency(AProject: TProject); virtual; abstract;
|
||||
|
@ -243,7 +243,7 @@ type
|
||||
function AddProjectDependency(AProject: TProject; APackage: TLazPackage;
|
||||
OnlyTestIfPossible: boolean = false): TModalResult; override;
|
||||
function AddProjectDependency(AProject: TProject;
|
||||
ADependency: TPkgDependency): TModalResult;
|
||||
ADependency: TPkgDependency): TModalResult; override;
|
||||
procedure AddProjectRegCompDependency(AProject: TProject;
|
||||
ARegisteredComponent: TRegisteredComponent); override;
|
||||
procedure AddProjectLCLDependency(AProject: TProject); override;
|
||||
@ -2158,7 +2158,7 @@ begin
|
||||
APackage.Name)<>nil
|
||||
then begin
|
||||
// package already there
|
||||
Result:=mrCancel;
|
||||
Result:=mrOk;
|
||||
exit;
|
||||
end;
|
||||
ProvidingAPackage:=PackageGraph.FindPackageProvidingName(
|
||||
|
Loading…
Reference in New Issue
Block a user