Hooks (probably to be discarded)

This commit is contained in:
Alejandro R. Mosteo
2018-03-15 00:02:02 +01:00
parent e550916f3b
commit 2113fadb7b
2 changed files with 12 additions and 4 deletions
+9
View File
@@ -0,0 +1,9 @@
with Alire.Origins;
package Alire.Hooks with Preelaborate is
-- Hackish way to enable Alire to obtain some platform-specific info that only Alr knows how to get
Version_Getter_Hook : access function (O : Origins.Origin) return String;
end Alire.Hooks;
+3 -4
View File
@@ -1,6 +1,5 @@
with Alire.Conditional;
with Alire.Dependencies;
-- with Alire.Dependencies.Vectors;
with Alire.Milestones;
with Alire.Origins;
with Alire.Projects;
@@ -109,6 +108,8 @@ package Alire.Releases with Preelaborate is
private
use Semantic_Versioning;
use all type Projects.Names;
function All_Properties (R : Release) return Conditional.Properties;
@@ -140,7 +141,7 @@ private
Available : Alire.Requisites.Tree) return Release is
(Notes'Length,
Name,
Version,
Version,
Origin,
Notes,
Dependencies,
@@ -152,8 +153,6 @@ private
Private_Properties,
Available);
use Semantic_Versioning;
function "<" (L, R : Release) return Boolean is
(L.Name < R.Name or else
(L.Name = R.Name and then