diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-04-04 16:03:04 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-04-19 19:39:55 +0300 |
commit | e958b63712f9a0ff4b523765d2fe12b58aa97fe0 (patch) | |
tree | 97ab99f430c0a6b40997aae56ced865e103cb9be /bpkg/pkg-fetch.cxx | |
parent | 00f75769842b303fd08d8465cd3dc682b6161664 (diff) |
Implement dependency up/down-grade/unhold
Diffstat (limited to 'bpkg/pkg-fetch.cxx')
-rw-r--r-- | bpkg/pkg-fetch.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/bpkg/pkg-fetch.cxx b/bpkg/pkg-fetch.cxx index ecc3535..a5efa47 100644 --- a/bpkg/pkg-fetch.cxx +++ b/bpkg/pkg-fetch.cxx @@ -184,13 +184,7 @@ namespace bpkg // pkg_fetch_check (c, t, n, replace); - if (db.query_value<repository_count> () == 0) - fail << "configuration " << c << " has no repositories" << - info << "use 'bpkg rep-add' to add a repository"; - - if (db.query_value<available_package_count> () == 0) - fail << "configuration " << c << " has no available packages" << - info << "use 'bpkg rep-fetch' to fetch available packages list"; + check_any_available (c, t); // 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 |