From 0e31447976e338956f4aef98930f2f28261d9983 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 12 Nov 2018 14:38:43 +0300 Subject: Add pkg-verify --deep option --- bpkg/rep-create.cxx | 38 +++----------------------------------- 1 file changed, 3 insertions(+), 35 deletions(-) (limited to 'bpkg/rep-create.cxx') diff --git a/bpkg/rep-create.cxx b/bpkg/rep-create.cxx index ad63267..16f6496 100644 --- a/bpkg/rep-create.cxx +++ b/bpkg/rep-create.cxx @@ -15,7 +15,6 @@ #include #include -#include #include #include #include @@ -99,7 +98,9 @@ namespace bpkg // Verify archive is a package and get its manifest. // path a (d / p); - package_manifest m (pkg_verify (o, a, o.ignore_unknown ())); + + package_manifest m ( + pkg_verify (o, a, true /* expand_values */, o.ignore_unknown ())); // Calculate its checksum. // @@ -112,39 +113,6 @@ namespace bpkg // m.location = a.leaf (root); - dir_path pd (m.name.string () + "-" + m.version.string ()); - - // Expand the description-file manifest value. - // - if (m.description && m.description->file) - { - path f (pd / m.description->path); - string s (extract (o, a, f)); - - if (s.empty ()) - fail << "description-file value in manifest of package archive " - << a << " references empty file " << f; - - m.description = text_file (move (s)); - } - - // Expand the changes-file manifest values. - // - for (auto& c: m.changes) - { - if (c.file) - { - path f (pd / c.path); - string s (extract (o, a, f)); - - if (s.empty ()) - fail << "changes-file value in manifest of package archive " << a - << " references empty file " << f; - - c = text_file (move (s)); - } - } - package_key k {m.name, m.version}; // Argument evaluation order. auto r (map.emplace (move (k), package_data {a, move (m)})); -- cgit v1.1