summaryrefslogtreecommitdiff
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
parent44548c4261e8630e4c2c25407abe76e09142c9f7 (diff)
add torrent support via adia2
-rw-r--r--lib/builder-targets.sh4
-rw-r--r--lib/builder-utils.sh4
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/builder-targets.sh b/lib/builder-targets.sh
index 746168c..2ff1360 100644
--- a/lib/builder-targets.sh
+++ b/lib/builder-targets.sh
@@ -338,11 +338,11 @@ EOF
local file_list=${OUTPUT_DIR}/product-file-list.txt
local file_sort_list=${OUTPUT_DIR}/product-file-sort-list.txt
rm -f ${file_list}
- for cfg_file in `find ${OPSI_REPOS_BASE_DIR} -name "${PN}-${VERSION}-${CREATOR_TAG}*.cfg" -print ` ; do
+ for cfg_file in `find ${OPSI_REPOS_BASE_DIR} -name "${PN}-*.cfg" -print ` ; do
. ${cfg_file}
printf "%08d;$cfg_file\n" $REV_RELEASE >> ${file_list}
done
- sort -n ${file_list} > ${file_sort_list}
+ sort -V ${file_list} > ${file_sort_list}
# Delete the oldest files
log_debug "base list for calculate purge:"
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