summaryrefslogtreecommitdiff
path: root/lib/builder-utils.sh
diff options
context:
space:
mode:
authorMario Fetka <[email protected]>2013-03-01 17:50:20 (GMT)
committer Mario Fetka <[email protected]>2013-03-01 17:50:20 (GMT)
commit73f4adc58ab430fd3a0edf43ea249c919f267d1d (patch)
treebeb5108002e26496ed73fa4deded79c68c76e8db /lib/builder-utils.sh
parent44548c4261e8630e4c2c25407abe76e09142c9f7 (diff)
add torrent support via adia2
Diffstat (limited to 'lib/builder-utils.sh')
-rw-r--r--lib/builder-utils.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/builder-utils.sh b/lib/builder-utils.sh
index 700414b..1d66593 100644
--- a/lib/builder-utils.sh
+++ b/lib/builder-utils.sh
@@ -29,6 +29,10 @@ function retrieve_file() {
fi
elif [ "$downloader" = "plowdown" ]; then
plowdown --max-retries=1 -o ${dst%/*} "$src"
+ elif [ "$downloader" = "aria2c" ]; then
+ #aria2c --seed-time=0 -d ${dst%/*} -o ${dst##*/} "$src"
+ aria2c --seed-time=0 --allow-overwrite=true -o ${dst##*/} "$src"
+ mv -f ${dst##*/} ${dst%/*}
else
fatal_error "Downloader not implemented: $downloader"
fi

Powered by Domaintechnik.at | Hosting - Domain - Webspace