diff options
author | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2011-05-10 17:06:16 -0500 |
---|---|---|
committer | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2011-05-10 17:06:16 -0500 |
commit | 0cb622f771024f739b84eb0522c85eb2768c2820 (patch) | |
tree | d69888bc25dec54e58c38f3cac0c3902a98e5d4a /librestage | |
parent | d7e07174e2dae3d1bd9ec79c90cba9912f2cef0f (diff) | |
parent | 0e929530a592dec84439a1c71ca57513517b8e94 (diff) |
Merge branch 'master' of vparabola:~/projects/libretools
Diffstat (limited to 'librestage')
-rwxr-xr-x | librestage | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -64,11 +64,17 @@ source /etc/makepkg.conf PKGDEST=${PKGDEST:-.} SRCPKGDEST=${SRCPKGDEST:-.} +PKGEXT=".pkg.tar.?z" + # Copies the packages to the specified repos inside staging -for _arch in ${arch[@]}; do +for _arch in ${ARCHES[@]}; do for pkg in ${pkgname[@]}; do - pkgfile="$pkg-$pkgver-$pkgrel-$_arch$PKGEXT" - pkgpath="$PKGDEST/$pkgfile" + + pkgpath=$(find ${PKGDEST}/ -type f -name "${pkg}-${pkgver}-${pkgrel}-${_arch}${PKGEXT}") + + [[ -z ${pkgpath} ]] && continue; + + pkgfile=$(basename ${pkgpath}) if [ -e "${pkgpath}" ]; then msg "Found ${pkgfile}" |