diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-06-13 22:20:15 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-06-15 14:32:28 +0300 |
commit | 338d8065f1b681da841fa0d79cc9265776ff1e1e (patch) | |
tree | 3d38dc4353a4c161518921b8bd6ee98f24bdb2eb /libbutl/standard-version.cxx | |
parent | 481f9ba1aee62fea092184f2243d210a8686781f (diff) |
Default standard version epoch to one
Diffstat (limited to 'libbutl/standard-version.cxx')
-rw-r--r-- | libbutl/standard-version.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libbutl/standard-version.cxx b/libbutl/standard-version.cxx index dbf6f30..e4180d1 100644 --- a/libbutl/standard-version.cxx +++ b/libbutl/standard-version.cxx @@ -226,7 +226,10 @@ namespace butl (p == n || s[p] == '+')); if (stub) + { + r.epoch = 0; r.version = uint64_t (~0); + } else { if (s[p] != '.') @@ -499,7 +502,7 @@ namespace butl { std::string r; - if (epoch != 0) + if (epoch != 1 && !stub ()) { r += '+'; r += to_string (epoch); |