fix #3296: use proxy client to retrieve changelog
Signed-off-by: Dylan Whyte <d.whyte@proxmox.com>
This commit is contained in:
parent
013fa2d886
commit
a1b71c3c7d
@ -6,6 +6,7 @@ use proxmox::list_subdirs_api_method;
|
|||||||
use proxmox::api::{api, RpcEnvironment, RpcEnvironmentType, Permission};
|
use proxmox::api::{api, RpcEnvironment, RpcEnvironmentType, Permission};
|
||||||
use proxmox::api::router::{Router, SubdirMap};
|
use proxmox::api::router::{Router, SubdirMap};
|
||||||
|
|
||||||
|
use crate::config::node;
|
||||||
use crate::server::WorkerTask;
|
use crate::server::WorkerTask;
|
||||||
use crate::tools::{apt, SimpleHttp, subscription};
|
use crate::tools::{apt, SimpleHttp, subscription};
|
||||||
|
|
||||||
@ -194,7 +195,13 @@ fn apt_get_changelog(
|
|||||||
bail!("Package '{}' not found", name);
|
bail!("Package '{}' not found", name);
|
||||||
}
|
}
|
||||||
|
|
||||||
let mut client = SimpleHttp::new(None); // TODO: pass proxy_config
|
let proxy_config = if let Ok((node_config, _digest)) = node::config() {
|
||||||
|
node_config.http_proxy()
|
||||||
|
} else {
|
||||||
|
None
|
||||||
|
};
|
||||||
|
|
||||||
|
let mut client = SimpleHttp::new(proxy_config);
|
||||||
|
|
||||||
let changelog_url = &pkg_info[0].change_log_url;
|
let changelog_url = &pkg_info[0].change_log_url;
|
||||||
// FIXME: use 'apt-get changelog' for proxmox packages as well, once repo supports it
|
// FIXME: use 'apt-get changelog' for proxmox packages as well, once repo supports it
|
||||||
|
Loading…
Reference in New Issue
Block a user