mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-30 20:34:38 +01:00
Updated for proxy server
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
parent
f621d96ffb
commit
d5dc897238
3 changed files with 8 additions and 2 deletions
|
@ -1,6 +1,8 @@
|
||||||
3.8.3 - 17/02/2020
|
3.8.3 - 21/02/2020
|
||||||
BugFix:
|
BugFix:
|
||||||
- Counting packages for binaries repositories
|
- Counting packages for binaries repositories
|
||||||
|
Added:
|
||||||
|
- Feature for proxy servers
|
||||||
|
|
||||||
3.8.2 - 15/02/2020
|
3.8.2 - 15/02/2020
|
||||||
Fixed:
|
Fixed:
|
||||||
|
|
|
@ -67,7 +67,8 @@ class Config(Utils):
|
||||||
"SLACKPKG_LOG",
|
"SLACKPKG_LOG",
|
||||||
"ONLY_INSTALLED",
|
"ONLY_INSTALLED",
|
||||||
"EDITOR",
|
"EDITOR",
|
||||||
"NOT_DOWNGRADE"
|
"NOT_DOWNGRADE",
|
||||||
|
"HTTP_PROXY",
|
||||||
]
|
]
|
||||||
read_conf = self.read_file(self.config_file)
|
read_conf = self.read_file(self.config_file)
|
||||||
for line in read_conf.splitlines():
|
for line in read_conf.splitlines():
|
||||||
|
|
|
@ -25,11 +25,14 @@
|
||||||
import os
|
import os
|
||||||
import urllib3
|
import urllib3
|
||||||
|
|
||||||
|
from slpkg.__metadata__ import MetaData as _meta_
|
||||||
|
|
||||||
|
|
||||||
class FileSize:
|
class FileSize:
|
||||||
"""Check local or remote file size
|
"""Check local or remote file size
|
||||||
"""
|
"""
|
||||||
def __init__(self, registry):
|
def __init__(self, registry):
|
||||||
|
self.meta = _meta_
|
||||||
self.registry = registry
|
self.registry = registry
|
||||||
if self.meta.http_proxy:
|
if self.meta.http_proxy:
|
||||||
self.http = urllib3.ProxyManager(self.meta.http_proxy)
|
self.http = urllib3.ProxyManager(self.meta.http_proxy)
|
||||||
|
|
Loading…
Add table
Reference in a new issue