FS#20555 - [makepkg] return 0 on error
Attached to Project:
Pacman
Opened by PyroPeter (pyropeter) - Saturday, 21 August 2010, 14:44 GMT
Last edited by Dan McGee (toofishes) - Monday, 30 August 2010, 15:03 GMT
Opened by PyroPeter (pyropeter) - Saturday, 21 August 2010, 14:44 GMT
Last edited by Dan McGee (toofishes) - Monday, 30 August 2010, 15:03 GMT
|
Details
Summary and Info:
Makepkg exits with a return value of 0 (success) when package() fails. Steps to Reproduce: 1. Write a PKGBUILD with a package() function returning 1. 2. Makepkg it. 3. Check the exit value. |
This task depends upon
Closed by Dan McGee (toofishes)
Monday, 30 August 2010, 15:03 GMT
Reason for closing: Works for me
Additional comments about closing: Not a bug, makepkg correctly sets the error code.
Monday, 30 August 2010, 15:03 GMT
Reason for closing: Works for me
Additional comments about closing: Not a bug, makepkg correctly sets the error code.
> cat PKGBUILD
pkgname=NAME
pkgver=VERSION
pkgrel=1
arch=('any')
package() {
return 1
}
allan@mugen ~/tmp/makepkg
> makepkg
==> Making package: NAME VERSION-1 (Tue Aug 31 00:19:42 EST 2010)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==> Extracting Sources...
==> Removing existing pkg/ directory...
==> Entering fakeroot environment...
==> Starting package()...
Aborting...
allan@mugen ~/tmp/makepkg
> echo $?
2
I can see no way to replicate this bug...
makepkg -c 2>&1 | tee build.log && namcap *.pkg.tar.gz 2>&1 | tee -a build.log
and thought it was the return code of makepkg but this was a mistake of mine. Sorry for wasting your time.