diff options
Diffstat (limited to 'libbrep')
-rw-r--r-- | libbrep/package.cxx | 8 | ||||
-rw-r--r-- | libbrep/package.hxx | 29 | ||||
-rw-r--r-- | libbrep/types.hxx | 5 |
3 files changed, 23 insertions, 19 deletions
diff --git a/libbrep/package.cxx b/libbrep/package.cxx index b985af3..5ec1b69 100644 --- a/libbrep/package.cxx +++ b/libbrep/package.cxx @@ -61,10 +61,10 @@ namespace brep optional<string> ds, optional<text_type> dt, string ch, - optional<url_type> ur, - optional<url_type> du, - optional<url_type> su, - optional<url_type> pu, + optional<manifest_url> ur, + optional<manifest_url> du, + optional<manifest_url> su, + optional<manifest_url> pu, optional<email_type> em, optional<email_type> pe, optional<email_type> be, diff --git a/libbrep/package.hxx b/libbrep/package.hxx index 59ee589..0ab8413 100644 --- a/libbrep/package.hxx +++ b/libbrep/package.hxx @@ -59,14 +59,14 @@ namespace brep to((?) ? to_string (*(?)) : brep::optional_string ()) \ from((?) ? brep::to_text_type (*(?)) : brep::optional_text_type ()) - // url + // manifest_url // - using bpkg::url; + using bpkg::manifest_url; - #pragma db value(url) definition - #pragma db member(url::value) virtual(string) before \ - get(this.string ()) \ - set(this = brep::url ((?), "" /* comment */)) \ + #pragma db value(manifest_url) definition + #pragma db member(manifest_url::value) virtual(string) before \ + get(this.string ()) \ + set(this = brep::manifest_url ((?), "" /* comment */)) \ column("") // email @@ -356,7 +356,6 @@ namespace brep using upstream_version_type = brep::upstream_version; using priority_type = brep::priority; using license_alternatives_type = brep::license_alternatives; - using url_type = brep::url; using email_type = brep::email; using dependencies_type = brep::dependencies; using requirements_type = brep::requirements; @@ -376,10 +375,10 @@ namespace brep optional<string> description, optional<text_type> description_type, string changes, - optional<url_type>, - optional<url_type> doc_url, - optional<url_type> src_url, - optional<url_type> package_url, + optional<manifest_url> url, + optional<manifest_url> doc_url, + optional<manifest_url> src_url, + optional<manifest_url> package_url, optional<email_type>, optional<email_type> package_email, optional<email_type> build_email, @@ -449,10 +448,10 @@ namespace brep optional<string> description; // Absent if type is unknown. optional<text_type> description_type; // Present if description is present. string changes; - optional<url_type> url; - optional<url_type> doc_url; - optional<url_type> src_url; - optional<url_type> package_url; + optional<manifest_url> url; + optional<manifest_url> doc_url; + optional<manifest_url> src_url; + optional<manifest_url> package_url; optional<email_type> email; optional<email_type> package_email; optional<email_type> build_email; diff --git a/libbrep/types.hxx b/libbrep/types.hxx index 9d63b8c..65dfc2d 100644 --- a/libbrep/types.hxx +++ b/libbrep/types.hxx @@ -21,6 +21,7 @@ #include <odb/lazy-ptr.hxx> +#include <libbutl/url.mxx> #include <libbutl/path.mxx> #include <libbutl/path-io.mxx> #include <libbutl/optional.mxx> @@ -90,6 +91,10 @@ namespace brep using butl::path_cast; + // <libbutl/url.mxx> + // + using butl::url; + // <libbutl/timestamp.mxx> // using butl::system_clock; |