From 3a6c4ab1b6fc79a6a543088553cdd6bc8cb0a1dd Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 21 May 2018 21:10:09 +0300 Subject: Adapt to inventing package_name type --- bpkg/pkg-command.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bpkg/pkg-command.cxx') diff --git a/bpkg/pkg-command.cxx b/bpkg/pkg-command.cxx index 6deb1d4..52e47c0 100644 --- a/bpkg/pkg-command.cxx +++ b/bpkg/pkg-command.cxx @@ -10,6 +10,7 @@ #include #include #include +#include using namespace std; using namespace butl; @@ -237,7 +238,9 @@ namespace bpkg { while (args.more ()) { - string n (args.next ()); + package_name n (parse_package_name (args.next (), + false /* allow_version */)); + shared_ptr p (db.find (n)); if (p == nullptr) -- cgit v1.1