diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-25 17:28:57 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-25 17:28:57 +0200 |
commit | 5905fbe8053c5e58e77234dc1f9f81bde6e46b41 (patch) | |
tree | fc9e43793ca7d40c65d0bb835326d3995e0dad63 /bpkg/pkg-fetch.cxx | |
parent | db495f3c771ecfe2911d55ba41ab83d22409bcc0 (diff) |
Ignore revision for version equality in pkg-{status,build}, constraints
Diffstat (limited to 'bpkg/pkg-fetch.cxx')
-rw-r--r-- | bpkg/pkg-fetch.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bpkg/pkg-fetch.cxx b/bpkg/pkg-fetch.cxx index f9c97ca..3032eda 100644 --- a/bpkg/pkg-fetch.cxx +++ b/bpkg/pkg-fetch.cxx @@ -186,6 +186,11 @@ namespace bpkg fail << "configuration " << c << " has no available packages" << info << "use 'bpkg cfg-fetch' to fetch available packages list"; + // Note that here we compare including the revision (unlike, say in + // pkg-status). Which means one cannot just specify 1.0.0 and get 1.0.0+1 + // -- they must spell it out explicitly. This is probably ok since this is + // a low-level command where some extra precision doesn't hurt. + // shared_ptr<available_package> ap ( db.find<available_package> (available_package_id (n, v))); |