diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-25 15:43:04 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-25 15:43:04 +0200 |
commit | be63c7bb20645c0e3ba0d3b3b0ac3ca8692fb237 (patch) | |
tree | e79e9de930c87073e094bbe77f44a06347e5b35a /bpkg/pkg-verify.cxx | |
parent | a38876e1bcb94b6452f2c820e20883580e47cfe4 (diff) |
Don't enforce <name>-<version> form for user-supplied package directories
Diffstat (limited to 'bpkg/pkg-verify.cxx')
-rw-r--r-- | bpkg/pkg-verify.cxx | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/bpkg/pkg-verify.cxx b/bpkg/pkg-verify.cxx index f2723a0..a76370d 100644 --- a/bpkg/pkg-verify.cxx +++ b/bpkg/pkg-verify.cxx @@ -177,18 +177,20 @@ namespace bpkg manifest_parser mp (ifs, mf.string ()); package_manifest m (mp, iu); - // Verify package directory is <name>-<version>. + // We used to verify package directory is <name>-<version> but it is + // not clear why we should enforce it in this case (i.e., the user + // provides us with a package directory). // - dir_path ed (m.name + "-" + m.version.string ()); - - if (d.leaf () != ed) - { - if (diag) - error << "invalid package directory name '" << d.leaf () << "'" << - info << "expected from manifest '" << ed << "'"; - - throw failed (); - } + // dir_path ed (m.name + "-" + m.version.string ()); + // + // if (d.leaf () != ed) + // { + // if (diag) + // error << "invalid package directory name '" << d.leaf () << "'" << + // info << "expected from manifest '" << ed << "'"; + // + // throw failed (); + // } return m; } |