mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2024-11-16 07:47:35 +01:00
Added support httpie for downloading
This commit is contained in:
parent
7fc31f9c55
commit
5be96b8eb1
3 changed files with 8 additions and 4 deletions
|
@ -92,14 +92,15 @@ DEL_DEPS=off
|
|||
# Use colors for highlighting. Choose "on" or "off". Default is "on".
|
||||
USE_COLORS=on
|
||||
|
||||
# Downloader utility. Three options are supported "wget", "aria2c" and
|
||||
# "curl". Default is wget.
|
||||
# Downloader utility. Four options are supported "wget", "aria2c",
|
||||
# "curl" and "http". Default is wget.
|
||||
DOWNDER=wget
|
||||
|
||||
# Downloader [OPTION]. Pass downloader options, for curl use "-L -o" as
|
||||
# using to download in specific directory and support any redirects
|
||||
# such as from sourceforge repository. No extra option need for aria2c
|
||||
# by default to work. Default for wget is "-c -N".
|
||||
# by default to work. Http recommended "-d -c -o" options by default.
|
||||
# Default for wget is "-c -N".
|
||||
DOWNDER_OPTIONS=-c -N
|
||||
|
||||
# Update slackpkg ChangeLog.txt file if SLACKPKG_LOG is "on".
|
||||
|
|
|
@ -10,6 +10,9 @@
|
|||
# curl (alternative downloader)
|
||||
#
|
||||
# [OPTIONAL]
|
||||
# http (alternative downloader)
|
||||
#
|
||||
# [OPTIONAL]
|
||||
# pygraphviz >= 1.3rc2 (drawing dependencies diagram)
|
||||
#
|
||||
# [OPTIONAL]
|
||||
|
|
|
@ -61,7 +61,7 @@ class Download(object):
|
|||
self.downder, self.downder_options,
|
||||
self.dir_prefix, self.path, dwn),
|
||||
shell=True)
|
||||
elif self.downder == "curl":
|
||||
elif self.downder in ["curl", "http"]:
|
||||
subprocess.call("{0} {1} {2}{3} {4}".format(
|
||||
self.downder, self.downder_options,
|
||||
self.path, self.file_name, dwn), shell=True)
|
||||
|
|
Loading…
Reference in a new issue