diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-11-12 17:25:36 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-11-16 16:41:50 +0200 |
commit | 96281a6c4f818311a6df90c0d8b8f537a61e1090 (patch) | |
tree | d0c0ccacda5ccfb94b98d018abb273b554eb2f77 /brep/package | |
parent | e80ebd1c1a6fe7749c1565c4a9e2fccaa07d5d95 (diff) |
Add url, email, summary, description members to the repository class
Diffstat (limited to 'brep/package')
-rw-r--r-- | brep/package | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/brep/package b/brep/package index 8fc6a43..f56906a 100644 --- a/brep/package +++ b/brep/package @@ -14,6 +14,7 @@ #include <cstddef> // size_t #include <utility> // move() #include <cstdint> // uint16 +#include <ostream> #include <odb/core.hxx> #include <odb/forward.hxx> // database @@ -261,6 +262,9 @@ namespace brep #pragma db member(package) column("") not_null }; + std::ostream& + operator<< (std::ostream&, const dependency&); + #pragma db value class dependency_alternatives: public std::vector<dependency> { @@ -310,6 +314,14 @@ namespace brep repository_location location; std::string display_name; + optional<std::string> url; + + // Set only for internal repositories. + // + optional<std::string> email; + optional<std::string> summary; + optional<std::string> description; + // Non empty for internal repositories and external ones with a filesystem // path location. // @@ -428,8 +440,7 @@ namespace brep requirements_type requirements; odb::lazy_shared_ptr<repository_type> internal_repository; - // Path to the package file. Set only for packages present in internal - // repository. + // Path to the package file. Set only for internal packages. // optional<path> location; |