diff options
Diffstat (limited to 'bpkg/pkg-command.cxx')
-rw-r--r-- | bpkg/pkg-command.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
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 <bpkg/package-odb.hxx> #include <bpkg/database.hxx> #include <bpkg/diagnostics.hxx> +#include <bpkg/manifest-utility.hxx> 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<selected_package> p (db.find<selected_package> (n)); if (p == nullptr) |