1
0
镜像自地址 https://github.com/tuna/tunasync.git 已同步 2025-12-08 15:36:47 +00:00

hackage update

这个提交包含在:
bigeagle
2015-11-26 18:13:27 +08:00
父节点 7d6cd5eed3
当前提交 0445d956e9

查看文件

@@ -54,7 +54,7 @@ function hackage_mirror() {
echo "building download list"
# substract local list from remote list
comm <(sort $remote_pklist) <(sort $local_pklist) -3 | while read pk; do
comm <(sort $remote_pklist) <(sort $local_pklist) -23 | while read pk; do
# limit concurrent level
bgcount=`jobs | wc -l`
while [[ $bgcount -ge 5 ]]; do
@@ -63,13 +63,20 @@ function hackage_mirror() {
done
name="$pk.tar.gz"
if [[ ! -a package/$name ]]; then
if [ ! -a package/$name ]; then
must_download "http://hackage.haskell.org/package/$pk/$name" "package/$name" &
else
echo "skip existed: $name"
fi
done
# delete redundanty files
comm <(sort $remote_pklist) <(sort $local_pklist) -13 | while read pk; do
name="$pk.tar.gz"
echo "deleting ${name}"
rm "package/$name"
done
cp index.tar.gz 00-index.tar.gz
}