makepkg: Fixed logging for split packages

Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Eric Bélanger 2009-11-03 08:47:18 -05:00 committed by Dan McGee
parent 4d2ec3751c
commit 120cd312e4

View file

@ -145,7 +145,7 @@ clean_up() {
rm -f "${pkgbase}-${pkgver}-${pkgrel}-${CARCH}-package.log"* rm -f "${pkgbase}-${pkgver}-${pkgrel}-${CARCH}-package.log"*
elif (( SPLITPKG )); then elif (( SPLITPKG )); then
for pkg in ${pkgname[@]}; do for pkg in ${pkgname[@]}; do
rm -f "${pkg}-${pkgver}-${pkgrel}-${CARCH}-package.log"* rm -f "${pkgbase}-${pkgver}-${pkgrel}-${CARCH}-package_${pkg}.log"*
done done
fi fi
fi fi
@ -718,7 +718,7 @@ run_function() {
local ret=0 local ret=0
if (( LOGGING )); then if (( LOGGING )); then
BUILDLOG="${startdir}/${pkgname}-${pkgver}-${pkgrel}-${CARCH}-$pkgfunc.log" BUILDLOG="${startdir}/${pkgbase}-${pkgver}-${pkgrel}-${CARCH}-$pkgfunc.log"
if [[ -f $BUILDLOG ]]; then if [[ -f $BUILDLOG ]]; then
local i=1 local i=1
while true; do while true; do