[arch-general] "$startdir/src", "$startdir/pkg" and "|| return 1" in official packages

Allan McRae allan at archlinux.org
Fri Sep 17 10:43:25 EDT 2010


On 18/09/10 00:40, Vitaliy Berdinskikh UR6LAD wrote:
>> Although this isn't really significant... I was just curious :)
>>
>> `grep '${\?startdir}\?/src' /var/abs/*/*/PKGBUILD | wc -l` - "648"
>>
>> `grep '${\?startdir}\?/pkg' /var/abs/*/*/PKGBUILD | wc -l` - "1385"
>>
>> `fgrep '|| return 1' /var/abs/*/*/PKGBUILD | wc -l` - "9274"
>
> Why ' || return 1' is deprecated?
>

makepkg automatically exits on any error in the build() or package() 
functions.

Allan


More information about the arch-general mailing list