diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-05-28 15:17:04 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-05-28 15:17:04 +0200 |
commit | 7e3f2733e6b32355902477e929436c6328b72e0c (patch) | |
tree | dd947a787396be9843f3ec54aa88feb96e54449b | |
parent | 6e9dfefc8b353ce2cae650e6d3d68e38fcd12a8a (diff) |
Relax library name requirement from error to warning
-rw-r--r-- | bdep/new.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bdep/new.cxx b/bdep/new.cxx index 8a07cb3..09cd6d1 100644 --- a/bdep/new.cxx +++ b/bdep/new.cxx @@ -114,9 +114,14 @@ namespace bdep if (t == type::lib) { if (n.compare (0, 3, "lib") != 0) - fail << "library name does not start with 'lib'"; + { + warn << "library name does not start with 'lib'" << + info << "this package may not be acceptable to some repositories"; - s.assign (n, 3, string::npos); + s = n; + } + else + s.assign (n, 3, string::npos); } else s = n; |