diff options
Diffstat (limited to 'brep/package')
-rw-r--r-- | brep/package | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/brep/package b/brep/package index 5cfbd45..a193c16 100644 --- a/brep/package +++ b/brep/package @@ -157,10 +157,13 @@ namespace brep bool empty () const noexcept { - bool e (canonical_upstream.empty ()); - assert (!e || - (epoch == 0 && canonical_release.empty () && revision == 0)); - return e; + // Note that an empty canonical_upstream doesn't denote an empty + // canonical_version. Remeber, that canonical_upstream doesn't include + // rightmost digit-only zero components? So non-empty version("0") has + // an empty canonical_upstream. + // + return epoch == 0 && canonical_upstream.empty () && + canonical_release.empty () && revision == 0; } // Change collation to ensure the proper comparison of the "absent" release @@ -201,6 +204,12 @@ namespace brep } }; + // Wildcard version. Satisfies any dependency constraint and is represented + // as 0+0 (which is also the "stub version"; since a real version is always + // greater than the stub version, we reuse it to signify a special case). + // + extern const version wildcard_version; + // priority // using bpkg::priority; |