FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux General Discussion

 
 
LinkBack Thread Tools
 
Old 09-17-2010, 02:43 PM
Allan McRae
 
Default "$startdir/src", "$startdir/pkg" and "|| return 1" in official packages

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
 
Old 09-18-2010, 01:33 AM
Steve Holmes
 
Default "$startdir/src", "$startdir/pkg" and "|| return 1" in official packages

On Sat, Sep 18, 2010 at 12:43:25AM +1000, Allan McRae wrote:
> makepkg automatically exits on any error in the build() or package()
> functions.

This is interesting to know; I had no idea. I learn to build my
PKGBUILDs from other live examples as well as the .proto versions in
the shared pacman directory of example PKGBUILDs. I haven't looked
lately but hope these example scripts are updated accordingly. I plan
to update my personal PKGBUILDs and the ones I maintain in AUR.
 

Thread Tools




All times are GMT. The time now is 07:40 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org