aboutsummaryrefslogtreecommitdiff
path: root/libbpkg/manifest.ixx
diff options
context:
space:
mode:
Diffstat (limited to 'libbpkg/manifest.ixx')
-rw-r--r--libbpkg/manifest.ixx12
1 files changed, 11 insertions, 1 deletions
diff --git a/libbpkg/manifest.ixx b/libbpkg/manifest.ixx
index d6eb4a6..589d00f 100644
--- a/libbpkg/manifest.ixx
+++ b/libbpkg/manifest.ixx
@@ -242,7 +242,11 @@ namespace bpkg
effective_type (const butl::optional<std::string>& t, const package_name& n)
{
if (t)
- return *t == "exe" || *t == "lib" ? *t : "other";
+ {
+ std::string tp (*t, 0, t->find (','));
+ butl::trim (tp);
+ return tp == "exe" || tp == "lib" ? tp : "other";
+ }
const std::string& s (n.string ());
return s.size () > 3 && s.compare (0, 3, "lib") == 0 ? "lib" : "exe";
@@ -254,6 +258,12 @@ namespace bpkg
return effective_type (type, name);
}
+ inline strings package_manifest::
+ effective_type_sub_options () const
+ {
+ return effective_type_sub_options (type);
+ }
+
inline butl::small_vector<language, 1> package_manifest::
effective_languages (const butl::small_vector<language, 1>& ls,
const package_name& n)