--- /usr/bin/makepkg 2006-02-02 18:40:57.000000000 -0500 +++ makepkg 2006-10-15 15:30:19.000000000 -0400 @@ -772,7 +772,15 @@ else cmd="tar czvf $PKGDEST/$pkgname-$pkgver-$pkgrel.pkg.tar.gz .PKGINFO .FILELIST *" fi -$cmd | sort >../filelist +$cmd > ../filelist2 +cmdResponse=$? +cat ../filelist2 | sort > ../filelist +rm ../filelist2 + +if [ $cmdResponse -ne 0 ]; then + error "Compression failed." + exit $cmdResponse +fi cd $startdir if [ "$CLEANUP" = "1" ]; then