summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorlestofante2019-10-04 17:42:50 +0200
committerlestofante2019-10-04 17:42:50 +0200
commitfa2af98bb3a7531ad8a1e42d3d4881ec0ed114db (patch)
treeb33cfccfc6e5535a35056424fa537161bdbba23d
parenta55e3336e9f24e3b929418b20a7c128c7c3d46f3 (diff)
downloadaur-fa2af98bb3a7531ad8a1e42d3d4881ec0ed114db.tar.gz
fixed a bug inot properly waiting for all child
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD6
-rwxr-xr-xpp.sh4
3 files changed, 8 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e4f72fe8e1e..58b63bba707 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,14 @@
pkgbase = pacman-parallelizer
pkgdesc = A minimal package downloader for pacman, using aria2
- pkgver = 5
- pkgrel = 2
+ pkgver = 6
+ pkgrel = 1
url = https://github.com/lestofante/PacmanParallelizer
arch = any
license = GPL3
depends = aria2
depends = pacman-contrib
source = pp.sh
- md5sums = b7303091ecd5cdce68f91c95625253eb
+ md5sums = 773509405b5da7d79a3fb6985e35836d
pkgname = pacman-parallelizer
diff --git a/PKGBUILD b/PKGBUILD
index 8aade658c84..d138ee7af16 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,14 +1,14 @@
# Maintainer: lesto <lestofante88@gmail.com>
pkgname=pacman-parallelizer
-pkgver=5
-pkgrel=2
+pkgver=6
+pkgrel=1
pkgdesc="A minimal package downloader for pacman, using aria2"
arch=(any)
url="https://github.com/lestofante/PacmanParallelizer"
license=('GPL3')
depends=('aria2' 'pacman-contrib')
source=("pp.sh")
-md5sums=('b7303091ecd5cdce68f91c95625253eb')
+md5sums=('773509405b5da7d79a3fb6985e35836d')
build() {
cd "$srcdir"
diff --git a/pp.sh b/pp.sh
index 55db93e6ce9..2d9329b74aa 100755
--- a/pp.sh
+++ b/pp.sh
@@ -48,7 +48,7 @@ for pkgNameAndVersion in "${packageList[@]}"; do
aria2c -c $downloadList -d "$pacmanCahceDir" &> /dev/null &
pidTmp=($!)
- pidToWait+=$pidTmp
+ pidToWait+=($pidTmp)
pidToWaitStr+=" $pidTmp"
running=$(jobs |wc -l)
@@ -64,7 +64,7 @@ done
echo "all download started, waiting for completition ${pidToWaitStr}"
for pid in "${pidToWait[@]}"; do
- wait -n
+ wait $pid
# do something when a job completes
done