aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-fetch.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-01-25 17:28:57 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-01-25 17:28:57 +0200
commit5905fbe8053c5e58e77234dc1f9f81bde6e46b41 (patch)
treefc9e43793ca7d40c65d0bb835326d3995e0dad63 /bpkg/pkg-fetch.cxx
parentdb495f3c771ecfe2911d55ba41ab83d22409bcc0 (diff)
Ignore revision for version equality in pkg-{status,build}, constraints
Diffstat (limited to 'bpkg/pkg-fetch.cxx')
-rw-r--r--bpkg/pkg-fetch.cxx5
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)));