Update for optional dependencies

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
This commit is contained in:
Dimitris Zlatanidis 2016-10-20 00:52:33 +03:00
parent 210a22f84f
commit e4bd93af87
3 changed files with 5 additions and 3 deletions

View file

@ -6,7 +6,7 @@
# [OPTIONAL]
# aria2 (alternative downloader)
# curl (alternative downloader)
# http (alternative downloader)
# httpie (alternative downloader)
# pygraphviz >= 1.3.1 (drawing dependencies diagram)
# perl 5 language and graph-easy >= 0.75 (drawing dependencies ascii diagram)
# python2-pythondialog >= 3.3.0 (Python interface to the UNIX dialog utility)

View file

@ -8,3 +8,5 @@ Optional dependencies:
python2-pythondialog (for dialog box interface)
pygraphviz (for drawing dependencies diagram)
graph-easy (for drawing ascii dependencies diagram)
aria2 (alternative downloader)
httpie (alternative downloader)

View file

@ -33,7 +33,7 @@ from slpkg.__metadata__ import MetaData as _meta_
class Download(object):
"""Downloader manager. Slpkg use wget by default but support
curl, aria2 and http
curl, aria2 and httpie
"""
def __init__(self, path, url, repo):
self.path = path
@ -48,7 +48,7 @@ class Download(object):
def start(self):
"""Download files using wget or other downloader.
Optional curl, aria2c and http
Optional curl, aria2c and httpie
"""
dwn_count = 1
self._directory_prefix()