From 5905fbe8053c5e58e77234dc1f9f81bde6e46b41 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 25 Jan 2016 17:28:57 +0200 Subject: Ignore revision for version equality in pkg-{status,build}, constraints --- bpkg/pkg-fetch.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bpkg/pkg-fetch.cxx') 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 ap ( db.find (available_package_id (n, v))); -- cgit v1.1