diff options
Diffstat (limited to 'brep/package.cxx')
-rw-r--r-- | brep/package.cxx | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/brep/package.cxx b/brep/package.cxx index 853d484..d99819c 100644 --- a/brep/package.cxx +++ b/brep/package.cxx @@ -6,6 +6,7 @@ #include <utility> // move() #include <cassert> +#include <ostream> #include <odb/database.hxx> @@ -24,6 +25,17 @@ namespace brep return package.object_id ().name; } + ostream& + operator<< (ostream& o, const dependency& d) + { + o << d.name (); + + if (d.constraint) + o << ' ' << *d.constraint; + + return o; + } + // package // package:: @@ -120,19 +132,19 @@ namespace brep // repository:: repository (repository_location l, string d, dir_path p) - : location (move (l)), + : name (l.canonical_name ()), + location (move (l)), display_name (move (d)), local_path (move (p)), internal (true) { - name = location.canonical_name (); } repository:: repository (repository_location l) - : location (move (l)), + : name (l.canonical_name ()), + location (move (l)), internal (false) { - name = location.canonical_name (); } } |