diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-08-30 23:14:51 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-08-31 18:19:37 +0300 |
commit | d22f466823192963c22eb8f51ae930cb5af8fa9a (patch) | |
tree | f60f5dc30a76a2fff67ab20b399dafe05e80a024 /libbrep/package.hxx | |
parent | 05eeac08b63449925cc2e12d2fdaf937d5fa1bbc (diff) |
Add support for git repositories to brep-load
Diffstat (limited to 'libbrep/package.hxx')
-rw-r--r-- | libbrep/package.hxx | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/libbrep/package.hxx b/libbrep/package.hxx index e7a8338..3d281b0 100644 --- a/libbrep/package.hxx +++ b/libbrep/package.hxx @@ -120,17 +120,16 @@ namespace brep { using package_type = brep::package; - lazy_shared_ptr<package_type> package; + package_name name; optional<dependency_constraint> constraint; - // Prerequisite package name. + // Resolved dependency package. NULL if the repository load was shallow + // and so the package dependencies are not resolved. // - package_name - name () const; + lazy_shared_ptr<package_type> package; // Database mapping. // - #pragma db member(package) column("") not_null #pragma db member(constraint) column("") }; @@ -212,7 +211,7 @@ namespace brep // uint16_t priority; - optional<string> url; + optional<string> interface_url; // Present only for internal repositories. // @@ -318,6 +317,7 @@ namespace brep requirements_type, build_constraints_type, optional<path> location, + optional<string> fragment, optional<string> sha256sum, shared_ptr<repository_type>); @@ -370,6 +370,11 @@ namespace brep // optional<path> location; + // Present only for packages that come from the supporting fragmentation + // internal repository (normally version control-based). + // + optional<string> fragment; + // Present only for internal packages. // optional<string> sha256sum; |