mirror of https://gitlab.com/basile.b/dexed.git
fix #476 - SemVer error when adding a DUB dependency from the project editor
This commit is contained in:
parent
da9cf5105b
commit
0271d15878
|
@ -1601,7 +1601,18 @@ procedure TDubProject.updateImportPathsFromJson;
|
||||||
else if (p = 'master') or (v = '~master') then
|
else if (p = 'master') or (v = '~master') then
|
||||||
q.init('v0.0.0-master')
|
q.init('v0.0.0-master')
|
||||||
else
|
else
|
||||||
q.init('v' + p);
|
begin
|
||||||
|
try
|
||||||
|
q.init('v' + p);
|
||||||
|
except
|
||||||
|
// while editing a DUB project from the DUB project editor,
|
||||||
|
// '<value>', i.e "undefined JSON value" can be found here.
|
||||||
|
// So get DUB to fetch the most recent if the 'autoFetch' IDE option
|
||||||
|
// is ON, even if another version is set later.
|
||||||
|
o := '>=';
|
||||||
|
q.init('v0.0.0');
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
// Finds a match for the version in the local packages list.
|
// Finds a match for the version in the local packages list.
|
||||||
u := TDubLocalPackages.find(n, o, q, pck);
|
u := TDubLocalPackages.find(n, o, q, pck);
|
||||||
|
|
Loading…
Reference in New Issue