aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-disfigure.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bpkg/pkg-disfigure.cxx')
-rw-r--r--bpkg/pkg-disfigure.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/bpkg/pkg-disfigure.cxx b/bpkg/pkg-disfigure.cxx
index 44a3006..bcd14f1 100644
--- a/bpkg/pkg-disfigure.cxx
+++ b/bpkg/pkg-disfigure.cxx
@@ -8,6 +8,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;
@@ -204,7 +205,8 @@ namespace bpkg
fail << "package name argument expected" <<
info << "run 'bpkg help pkg-disfigure' for more information";
- string n (args.next ());
+ package_name n (parse_package_name (args.next (),
+ false /* allow_version */));
database db (open (c, trace));
transaction t (db);