aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-05-28 15:17:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-05-28 15:17:04 +0200
commit7e3f2733e6b32355902477e929436c6328b72e0c (patch)
treedd947a787396be9843f3ec54aa88feb96e54449b
parent6e9dfefc8b353ce2cae650e6d3d68e38fcd12a8a (diff)
Relax library name requirement from error to warning
-rw-r--r--bdep/new.cxx9
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;