From 4887f43d983898e48feaffc467327bc7fc4e1180 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 10 Feb 2023 14:04:27 +0300 Subject: Add support for fetch timeout to system package managers --- bpkg/system-package-manager.hxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bpkg/system-package-manager.hxx') diff --git a/bpkg/system-package-manager.hxx b/bpkg/system-package-manager.hxx index 63bf676..941c981 100644 --- a/bpkg/system-package-manager.hxx +++ b/bpkg/system-package-manager.hxx @@ -188,10 +188,14 @@ namespace bpkg // available version of the not yet installed or partially installed // packages. // + // If fetch timeout (in seconds) is specified, then use it for all the + // underlying network operations. + // system_package_manager (bpkg::os_release&& osr, const target_triplet& h, string a, optional progress, + optional fetch_timeout, bool install, bool fetch, bool yes, @@ -200,6 +204,7 @@ namespace bpkg host (h), arch (move (a)), progress_ (progress), + fetch_timeout_ (fetch_timeout), install_ (install), fetch_ (fetch), yes_ (yes), @@ -283,7 +288,8 @@ namespace bpkg const string& version_id, const vector& like_ids); protected: - optional progress_; // --[no]-progress (see also stderr_term) + optional progress_; // --[no]-progress (see also stderr_term) + optional fetch_timeout_; // --fetch-timeout // The --sys-* option values. // -- cgit v1.1